cs162/assignments/assignment1/magic.cpp
/*********************************************************************
 * ** Function: choose
 * ** Description: This function is the choosing functionality of the sorting system further below
 * ** Parameters: N/a
 * ** Pre-Conditions: User has logged in and is about to sort spells
 * ** Post-Conditions: Choice is given to main sorting function
 * *********************************************************************/
choose
Description: This function is the choosing functionality of the sorting system further below
Parameters: N/a
Pre-Conditions: User has logged in and is about to sort spells
Post-Conditions: Choice is given to main sorting function
choose Description : This function is the choosing functionality of the sorting system further below Parameters : N / a Pre - Conditions : User has logged in and is about to sort spells Post - Conditions : Choice is given to main sorting function
int choose() {
	int choice = 4;
	cout << endl;
	cout << "Which option would you like to choose?" << endl;
	cout << "Sort spellbooks by number of pages (Press 1)" << endl;
	cout << "Group spells by their effect (Press 2)" << endl;
	cout << "Sort spellbooks by average success rate (Press 3)" << endl;
	cout << "Quit (Press 4)" << endl;
	cin >> choice;
	return choice;
}
int choose ( ) { int choice = 4 ; cout << endl ; cout << " " << endl ; cout << " " << endl ; cout << " " << endl ; cout << " " << endl ; cout << " " << endl ; cin >> choice ; return choice ; }
** Function: choose
 ** Description: This function is the choosing functionality of the sorting system further below
 ** Parameters: N/a
 ** Pre-Conditions: User has logged in and is about to sort spells
 ** Post-Conditions: Choice is given to main sorting function
** Function : choose ** Description : This function is the choosing functionality of the sorting system further below ** Parameters : N / a ** Pre - Conditions : User has logged in and is about to sort spells ** Post - Conditions : Choice is given to main sorting function