Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Location
- {
- std::string buildingName;
- int floorLevel;
- };
- struct Drink
- {
- std::string drinkName;
- float drinkSize;
- float drinkPrice;
- };
- struct VendingMachine
- {
- Location machineLocation;
- Drink drinkTypes[10];
- };
- VendingMachine vendingMachines[5];
- int main()
- {
- vendingMachines[0].machineLocation.buildingName == "Test";
- std::cout << vendingMachines[0].machineLocation.buildingName << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement