It is a username and password program in C++ using file handling. User can register and then log in using the username and password.
It is a username and password program in C++ using file handling. User can register and then log in using the username and password. I wrote code in vs code. Here are the steps to run the code:-
1)enter the option for registration. It will ask for to enter the username, enter the username that you want. Then it will ask you to enter the password, enter the password that you want. After entering it will show "registration successful".
2)enter the option for login. It will ask for a username, enter your registered username. then it will ask for a password, enter your registered password. press Enter. It will show "Login successful.
In this code, the registered username and password will be saved in the .txt file we create in the program. Login will be successful only when the login username and password match with the recently registered username and password. If it does not match then it will show a "login error".
Submitted by Harshali Kardak (harshalikardak)
Download packets of source code on Coders Packet