Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1. int main() {
  2.  
  3.     WOOD_CLASS myWood;
  4.     GARDEN_CLASS garden;
  5.     garden.plantWood();
  6.     garden.plantWood();
  7.     garden.getWoodPointer(0)->growthWood();
  8.     garden.plantWood();
  9.     garden.plantWood();
  10.     garden.plantWood();
  11.     garden.plantWood();
  12.     garden.getWoodPointer(0)->growthWood();
  13.     garden.plantWood();
  14.     cout << myWood.getBranchesTotal() << endl;
  15.     myWood.cutWood(0);
  16.     cout << myWood.getBranchesTotal() << endl;
  17.     garden.plantWood();
  18.     garden.growthGarden();
  19.     garden.plantWood();
  20.     garden.growthGarden();
  21.     garden.growthGarden();
  22.     garden.growthGarden();
  23.  
  24.     cout << "branches: " << garden.getBranchesTotal() << endl << "fruits: " << garden.getFruitsTotal() << endl;
  25.     cout << "weight: " << garden.getWeightsTotal() << endl;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement