Hi i was wondering if thers a way to make a simple log in coding?
I can make one but only using numbers, I want to know how to make one with
actual letters.
This is a discussion on Coding a log in..... within the C++ Programming forums, part of the General Programming Boards category; Hi i was wondering if thers a way to make a simple log in coding? I can make one but ...
Hi i was wondering if thers a way to make a simple log in coding?
I can make one but only using numbers, I want to know how to make one with
actual letters.
What do you mean by log in? Log in to a website? If so, why would you be limited to numbers?
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */
Heres my coding
Code:int main() { int x; cout << "please enter password' << endl; cin >> x; if (x == inputed password) { cout << "PASS" << endl;} else { cout << "FAIL" << endl;
but it only does it with numbers,,,How can I make it work with actual letters?
Use std::string instead of int, and read using getline() instead of cin.