63 155
Assignments Done
99,3%
Successfully Done
In July 2018

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

Question #14052
how to input a password "jru" in visual C++. Thank you very much !
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions