// Zeinalipour-Yazti Demetrios // csyiazti // cs10xx - // Lab Sec#24 // lab5 /* * This program reads in characters until the user enters the correct two-character sequence as a password. * The password is "cs". This password is used to open a door, let the user know when the door is open. * The program simply keep reading characters until the proper password has been entered. * The program will just wait for the user to type in more characters if the password has not been * entered correctly yet. If the password was entered correctly, it will output a statement saying * "the door has been opened" and then the program will be finished. * */ #include void main() { const int PASSWORD_LENGTH = 80; char input[PASSWORD_LENGTH]; cout << "Give me the password (up to " << PASSWORD_LENGTH << " characters) : "; cin >> input; for (int i=0;i