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; }
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment