RCMS.cpp
/*************************PASSWORD FUNCTION*************************/
/*
Function to check a password if a user is a Teacher.
The user enters a password, and if it matches the stored password, then 
the user is granted Teacher access, and moves to the Teacher() function. 

Otherwise, they are able to try to reenter the password
If they do not enter the password correclty within 2 tries, they go back to the
Segregation() function to determine their access level
*/
PASSWORD FUNCTION
Function to check a password if a user is a Teacher.
The user enters a password, and if it matches the stored password, then
the user is granted Teacher access, and moves to the Teacher() function.

Otherwise, they are able to try to reenter the password
If they do not enter the password correclty within 2 tries, they go back to the
Segregation() function to determine their access level
PASSWORD FUNCTION Function to check a password if a user is a Teacher . The user enters a password and if it matches the stored password then the user is granted Teacher access and moves to the Teacher () function . Otherwise they are able to try to reenter the password If they do not enter the password correclty within 2 tries they go back to the Segregation () function to determine their access level
void Password() {
    char pass[7];
    pass[6] = '\0';
    int t = 0;
    start:
    cout << "\t\t\tENTER THE PASSWORD: ";
    cin >> pass;
    if (strcmp(pass, "A") == 0) {
        cout << "\t\t\tACCESS GRANTED\n";
        Teacher();
    } else {
        if (t == 2) {
            cout << "ACCESS DENIED" << "\n\n\n\n\n\n\n\n";
            Segregation();
        }
        cout << "\t\t\t      TRY AGAIN";
        ++t;
        goto start;
    }
}
void Password ( ) { char pass [ 7 ] ; pass [ 6 ] = ' \0 ' ; int t = 0 ; start : cout << " \t \t \t " ; cin >> pass ; if ( strcmp ( pass , " " ) == 0 ) { cout << " \t \t \t \n " ; Teacher ( ) ; } else { if ( t == 2 ) { cout << " " << " \n \n \n \n \n \n \n \n " ; Segregation ( ) ; } cout << " \t \t \t " ; ++ t ; goto start ; } }
PASSWORD FUNCTION
Function to check a password if a user is a Teacher.
PASSWORD FUNCTION Function to check a password if a user is a Teacher .