Answer to Question #14052 in C++ for keilo calamiong

Question #14052
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;
}


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS