Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. CellPhoneStock::CellPhoneStock(CellPhoneStock &cps)
  2. {
  3.     this->cellPhones[capacity];
  4.     for (int i = 0; i < capacity; i++)
  5.     {
  6.         this->cellPhones[i] = cps.cellPhones[i];
  7.     }
  8. }
  9.  
  10. CellPhoneStock::~CellPhoneStock()
  11. {
  12.     this->deleter();
  13. }
  14.  
  15. void CellPhoneStock::operator= (const CellPhoneStock &cps)
  16. {
  17.     this->deleter();
  18.     this->cellPhones[capacity];
  19.     for (int i = 0; i < capacity; i++)
  20.     {
  21.         this->cellPhones[i] = cps.cellPhones[i];
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement