Hi, I am making a C++ program which stores passwords and account information. It is in the console as I'm making it to practice as I am very new to C++.
What I want to do is let the user enter a password and compare the user entered password to the correct one in the program. Then if the password is correct and matches the stored password then the program continues.
Got any ideas? I've have tried myself but haven't got a working code.
For example: if I had this char Char password = "123456789"; and then char user_entered_password;- how would I compare them to see if they were to same?
For the char user_entered_password; I would use cin >> user_entered_password; to get the value for this variable.