Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class Drwal {
  2. private:
  3. Tree t[100];
  4. public:
  5. Drwal(Tree in[]) {
  6. for (int i = 0;i < 100;i++)
  7. t[i] = in[i];
  8.  
  9. cout << "Drwal Zatrudniony" << endl;
  10. }
  11. ~Drwal() {
  12. cout << "Drwal zwolniony" << endl;
  13. }
  14. int wycinka() {
  15. int licz = 0;
  16. for (int i = 0;i < 100;i++) {
  17. if (t[i].CzyDoWycinki()) {
  18. t[i].~Tree();
  19. licz++;
  20. }
  21. }
  22. return licz;
  23. }
  24. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement