how to input a password "jru" in visual C++. Thank you very much !
1
Expert's answer
2012-09-04T09:14:57-0400
#include <iostream> using namespace std; #include <string>
int main () { string password; cout<<"Please, Enter password\n"; cin>>password; if (password == "jru"){ cout<<"Password accepted\n"; // allowed code - here } system ("pause"); return 0; }
Comments
Leave a comment