Question: wont run please help #pragma once #include #include #include #include #include using namespace std; enum GameDuration { ZERO = 0 , FIFTY = 5 0
wont run please help
#pragma once #include #include #include #include #include using namespace std; enum GameDuration ZERO FIFTY SIXTY SEVENTY EIGHTY NINETY ; class CGame public: string id; GameDuration duration; CGame : id G duration ZERO payRate CGame string i GameDuration d float p id i; duration d; SetPayRate p ; void getInfo ; float getPayRate const; void setPayRate float rate ; void readGameInfo const vector& games ; void writeGameInfo const vector& games ; void displayMenu ; void listAllGames const vector& games ; void listGamesByDuration const vector& games, GameDuration duration ; void listGamesLowerThanDuration const vector& games, int maxDuration ; void listGamesHigherThanDuration const vector& games, int minDuration ; void findGameById const vector& games, const string& id ; void addGame vector& games ; void removeGame vector& games, const string& id ; void updateGame vector& games, const string& id ; private: float pavRate: CGame.cpp #include #include #include #include d; duration static cast d ; float pay; cout Please Enter Pay Rate: $ ; cin pay; setPayRate pay ; float CGame::getPayRate const return payRate; vold CGame::setPayRate float rate If rate sta rate payRate rate; else payRate ; vold CGane::readGaneInfo const vector CGane & games i fstream flle Games txt ; if file std::cerr Error opening file." std::endl; return; std::string id; int duration; double rate; while file id duration rate GameDuration enunDuration static cast duration ; games.push back CGame id enunDuration rate ; file.close ; vold CGame::writeGameInfo const vectorsCGame & games ofstream file Games txt ; for const auto& game : games file gamegetid gamegetDuration gamegetRate std::endl; file.close ; void CGane::displayMenu i cout Menu: ; cout a List all games ; cout b List all games of a specific duration ; cout C List all games with duration lomer than a specific number of minutes ; cout d List all games with duration higher than a specific number of ninutes ; cout e List information of a specific game ; cout f Calculate referee payments of a specific game ; cout g Add a game ; cout h Renove a game ; cout Update a game ; cout j Quit ; cout Enter your choice: ; #pragma once #include #include #include #include #include using namespace std; enum GameDuration ZERO FIFTY SIXTY SEVENTY EIGHTY NINETY ; class CGame public: string id; GameDuration duration; CGame : id G duration ZERO payRate CGame string i GameDuration d float p id i; duration d; setPayRate p ; void getInfo ; float getPayRate const; void setPayRate float rate ; void readGameInfo const vector& games ; void writeGameInfo const vector& games ; void displayMenu ; void listAllGames const vector& games ; void listGamesByDuration const vector& games, GameDuration duration ; void listGamesLowerThanDuration const vector& games, int maxDuration ; void. listGamesHigherThanDuration const vector& games, int minDuration ; void findGameById const vector& games, const string& id ; void addGame vector& games ; void removeGame vector& games, const string& id ; void updateGame vector& games, const string& id ; private: float pavRate: elinctude slastrean nclude include include using nanespace std; Y vold cGane: : getinfo i lng d; cout Please Enter Game buration: a : ; cin z d; duration
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
