Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- WOOD_CLASS myWood;
- GARDEN_CLASS garden;
- garden.plantWood();
- garden.plantWood();
- garden.getWoodPointer(0)->growthWood();
- garden.plantWood();
- garden.plantWood();
- garden.plantWood();
- garden.plantWood();
- garden.getWoodPointer(0)->growthWood();
- garden.plantWood();
- cout << myWood.getBranchesTotal() << endl;
- myWood.cutWood(0);
- cout << myWood.getBranchesTotal() << endl;
- garden.plantWood();
- garden.growthGarden();
- garden.plantWood();
- garden.growthGarden();
- garden.growthGarden();
- garden.growthGarden();
- cout << "branches: " << garden.getBranchesTotal() << endl << "fruits: " << garden.getFruitsTotal() << endl;
- cout << "weight: " << garden.getWeightsTotal() << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement