Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. BITMAP* myBitmap;
  2.  
  3. void doSomthing();
  4.  
  5. class testClass{
  6.   public:
  7.     testClass();
  8.     BITMAP* memberBitmap;
  9.  
  10.   protected:
  11.     void setBitamp(BITMAP* temp){memberBitmap = temp;}
  12.     BITMAP* getBitmap(void){return memberBitmap;}
  13. }
  14.  
  15. testClass C;
  16.  
  17. void main{
  18.   myBitmap = load_bitmap();
  19.   testClass C;
  20. }
  21.  
  22. void doSomething()
  23. {
  24.   C.setBitmap(myBitmap);  // C underclared (first use this function)
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement