Skip to content
Snippets Groups Projects
Commit 19e1a4ad authored by aurora's avatar aurora
Browse files

feat: function amntTables

parent df4baef5
No related branches found
No related tags found
No related merge requests found
......@@ -73,14 +73,18 @@ bool checkPlayers();
void skrivMeny();
void writeToFile();
void readFromFile();
void writeToFileTournament();
void readFromFileTournament();
void amntTables();
int main() {
char command;
// readFromFile();
readFromFile();
readFromFileTournament();
// ask for amount of tables
amntTables();
skrivMeny();
command = lesChar("\nKommando");
......@@ -98,7 +102,8 @@ char command;
command = lesChar("\nKommando");
}
// writeToFile();
writeToFileTournament();
writeToFile();
return 0;
}
......@@ -513,3 +518,12 @@ else
cout<<"\nCouldn't find tournamentData.dta!\n";
}
/**
* Asks user for number of tables
*
*/
void amntTables(){
cout<<"How many tables do you have?\n";
gTables = lesInt("Tables:",1,200);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment