Advertisement
Guest User

Code Problem

a guest
Dec 6th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. struct Location
  2. {
  3. std::string buildingName;
  4. int floorLevel;
  5. };
  6.  
  7. struct Drink
  8. {
  9. std::string drinkName;
  10. float drinkSize;
  11. float drinkPrice;
  12. };
  13.  
  14. struct VendingMachine
  15. {
  16. Location machineLocation;
  17. Drink drinkTypes[10];
  18. };
  19.  
  20. VendingMachine vendingMachines[5];
  21.  
  22. int main()
  23. {
  24. vendingMachines[0].machineLocation.buildingName == "Test";
  25. std::cout << vendingMachines[0].machineLocation.buildingName << std::endl;
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement