Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. class Bitmap { /* ... */ };
  2. class Okno {
  3.  public: /* ... */
  4. private: Bitmap* b; /* ... */ };
  5.  
  6.  
  7. Okno& operator=(const Okno& o)
  8.  { Bitmap* old = b;
  9. b = new Bitmap(*o.b);
  10. delete old;
  11. return *this; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement