Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cs-142:byu-acm-tournament-tracker [2015/05/21 12:57]
cs142ta created
cs-142:byu-acm-tournament-tracker [2015/05/21 13:02]
cs142ta
Line 39: Line 39:
  
 /* /*
-Reads for integer input and reprompts until valid integer input is provided within range + Reads for integer input and reprompts until valid integer input is provided within range 
-@param min minimum value for range of input + @param min minimum value for range of input 
-@param max maximum value for range of input + @param max maximum value for range of input 
-@return first valid input integer+ @return first valid input integer
 */ */
 int get_user_input(int min, int max) int get_user_input(int min, int max)
Line 328: Line 328:
  cout << "ADD A TEAM" << endl;  cout << "ADD A TEAM" << endl;
  string name_to_add = prompt_and_get_string("​Team to add: ");  string name_to_add = prompt_and_get_string("​Team to add: ");
- size = add_team(names,​ size, name_to_add);​+ size = add_team(names,​ size, name_to_add); ​// remember to update the size here
  }  }
  else if (choice == 2)  else if (choice == 2)
Line 335: Line 335:
  cout << "​DELETE A TEAM" << endl;  cout << "​DELETE A TEAM" << endl;
  string name_to_delete = prompt_and_get_string("​Team name: ");  string name_to_delete = prompt_and_get_string("​Team name: ");
- size = delete_team(names,​ size, name_to_delete);​+ size = delete_team(names,​ size, name_to_delete); ​ // remember to update the size here
  }  }
  else if (choice == 3)  else if (choice == 3)
cs-142/byu-acm-tournament-tracker.txt · Last modified: 2015/05/21 13:02 by cs142ta
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0