cs162/assignments/assignment1/magic.cpp
/*********************************************************************
 * ** Function: login_details
 * ** Description: This function takes two inputs of the user ID and the user password
 * ** Parameters: int &login_id, string &password
 * ** Pre-Conditions: login ID is ints and given and password is given
 * ** Post-Conditions: credentials that foloow the correct format are given
 * *********************************************************************/
login_details
Description: This function takes two inputs of the user ID and the user password
Parameters: int &login_id, string &password
Pre-Conditions: login ID is ints and given and password is given
Post-Conditions: credentials that foloow the correct format are given
login_details Description : This function takes two inputs of the user ID and the user password Parameters : int &login_id string &password Pre - Conditions : login ID is ints and given and password is given Post - Conditions : credentials that foloow the correct format are given
void login_details(int &login_id, string &password) {
	string login;
	do {
		cout << "Please enter your Login ID: ";
		getline(cin, login);
		cout << "Please enter your Password: ";
		getline(cin, password);
	} while(!check_id(login));
	login_id = atoi(login.c_str());
}
void login_details ( int & login_id , string & password ) { string login ; do { cout << " " ; getline ( cin , login ) ; cout << " " ; getline ( cin , password ) ; } while ( ! check_id ( login ) ) ; login_id = atoi ( login . c_str ( ) ) ; }
** Function: login_details
 ** Description: This function takes two inputs of the user ID and the user password
 ** Parameters: int &login_id, string &password
 ** Pre-Conditions: login ID is ints and given and password is given
 ** Post-Conditions: credentials that foloow the correct format are given
** Function : login_details ** Description : This function takes two inputs of the user ID and the user password ** Parameters : int &login_id string &password ** Pre - Conditions : login ID is ints and given and password is given ** Post - Conditions : credentials that foloow the correct format are given