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.
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?
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.