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

Added some commenting

parent b11f7b52
Branches
No related tags found
No related merge requests found
......@@ -92,6 +92,7 @@ char command;
case 3: enterResults(); break;
case 4: updatePlayer(); break;
case 5: viewPlayers(); break;
case 6: viewResults(); break;
default: skrivMeny(); break;
}
command = lesChar("\nKommando");
......@@ -316,6 +317,12 @@ for(int i=0; i<gTables; i++){
}
/**
*
* NON-CLASS FUNCTIONS
*
*/
/**
* Enter results for a specific round
*
......@@ -351,9 +358,13 @@ else if(result == 'D'){
* @see - calculateScore()
*/
void viewResults(){
for(int i=0; i < gPlayers.size();i++){
gPlayers[i]->calculateScore();
}
}
/**
......@@ -399,6 +410,7 @@ cout << "\nMenu: \n"
<< "\t3 - Enter results\n"
<< "\t4 - Edit player\n"
<< "\t5 - view player list\n"
<< "\t6 - view results\n"
<< "\tQ - Quit\n\n";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment