Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Drwal {
- private:
- Tree t[100];
- public:
- Drwal(Tree in[]) {
- for (int i = 0;i < 100;i++)
- t[i] = in[i];
- cout << "Drwal Zatrudniony" << endl;
- }
- ~Drwal() {
- cout << "Drwal zwolniony" << endl;
- }
- int wycinka() {
- int licz = 0;
- for (int i = 0;i < 100;i++) {
- if (t[i].CzyDoWycinki()) {
- t[i].~Tree();
- licz++;
- }
- }
- return licz;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement