cs162/assignments/assignment1/magic.cpp
/*********************************************************************
 * ** Function: print_wiz
 * ** Description: This function prints the information about the wizard or user who has logged in correctly
 * ** Parameters: wizard *wiz, int wiz_index
 * ** Pre-Conditions: user has successfully logged in
 * ** Post-Conditions: all information printed out correctly, move to sorting
 * *********************************************************************/
print_wiz
Description: This function prints the information about the wizard or user who has logged in correctly
Parameters: wizard *wiz, int wiz_index
Pre-Conditions: user has successfully logged in
Post-Conditions: all information printed out correctly, move to sorting
print_wiz Description : This function prints the information about the wizard or user who has logged in correctly Parameters : wizard * wiz int wiz_index Pre - Conditions : user has successfully logged in Post - Conditions : all information printed out correctly move to sorting
void print_wiz(wizard *wiz, int wiz_index) {
	cout << endl;
	cout << "Welcome " << wiz[wiz_index].name << endl;
	cout << "ID: " << wiz[wiz_index].id << endl;
	cout << "Status: " << wiz[wiz_index].position_title << endl;
	cout << "Beard Length: " << wiz[wiz_index].beard_length << endl;
}
void print_wiz ( wizard * wiz , int wiz_index ) { cout << endl ; cout << " " << wiz [ wiz_index ] . name << endl ; cout << " " << wiz [ wiz_index ] . id << endl ; cout << " " << wiz [ wiz_index ] . position_title << endl ; cout << " " << wiz [ wiz_index ] . beard_length << endl ; }
** Function: print_wiz
 ** Description: This function prints the information about the wizard or user who has logged in correctly
 ** Parameters: wizard *wiz, int wiz_index
 ** Pre-Conditions: user has successfully logged in
 ** Post-Conditions: all information printed out correctly, move to sorting
** Function : print_wiz ** Description : This function prints the information about the wizard or user who has logged in correctly ** Parameters : wizard * wiz int wiz_index ** Pre - Conditions : user has successfully logged in ** Post - Conditions : all information printed out correctly move to sorting