cs162/assignments/assignment1/magic.cpp
/*********************************************************************
 * ** Function: login
 * ** Description: This is the main login function, calls all of the necessary functions to get the user properly logged in
 * ** Parameters: string file1, wizard **wiz, int &wiz_index, int &num_wizards
 * ** Pre-Conditions: program is executed correctly
 * ** Post-Conditions: user is logged in successfully
 * *********************************************************************/
login
Description: This is the main login function, calls all of the necessary functions to get the user properly logged in
Parameters: string file1, wizard **wiz, int &wiz_index, int #_wizards
Pre-Conditions: program is executed correctly
Post-Conditions: user is logged in successfully
login Description : This is the main login function calls all of the necessary functions to get the user properly logged in Parameters : string file1 wizard ** wiz int &wiz_index int #_wizards Pre - Conditions : program is executed correctly Post - Conditions : user is logged in successfully
void login(string file1, wizard **wiz, int &wiz_index, int &num_wizards) {
	int login_id;
	string password;
	wizard *wizard = create_wiz(file1, num_wizards);
	*wiz = wizard;
	login_details(login_id, password);
	check_login(login_id, password, *wiz, num_wizards, wiz_index);
	print_wiz(*wiz, wiz_index);
}
void login ( string file1 , wizard * * wiz , int & wiz_index , int & num_wizards ) { int login_id ; string password ; wizard * wizard = create_wiz ( file1 , num_wizards ) ; * wiz = wizard ; login_details ( login_id , password ) ; check_login ( login_id , password , * wiz , num_wizards , wiz_index ) ; print_wiz ( * wiz , wiz_index ) ; }
** Function: login
 ** Description: This is the main login function, calls all of the necessary functions to get the user properly logged in
 ** Parameters: string file1, wizard **wiz, int &wiz_index, int &num_wizards
 ** Pre-Conditions: program is executed correctly
 ** Post-Conditions: user is logged in successfully
** Function : login ** Description : This is the main login function calls all of the necessary functions to get the user properly logged in ** Parameters : string file1 wizard ** wiz int &wiz_index int &num_wizards ** Pre - Conditions : program is executed correctly ** Post - Conditions : user is logged in successfully