SHARE
TWEET

Code Problem

a guest Dec 6th, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top