This project is a simple login and registration system implemented in C++. It demonstrates basic user authentication using file handling.
- User Registration: Allows new users to create an account.
- User Login: Allows existing users to log in with their credentials.
- Help Menu: Provides instructions on how to use the system.
- Loading Animation: A simple visual cue during operations.
- Compile the Code:
To compile the code, use a C++ compiler. For example, using
g++
:g++ -o login_system login_system.cpp
Upon running the program, you will see the following menu:
---------------------------------------------------------------------------------------
_______ _______ _______ _______
// \\ // \\ // \\ // \\
| Login | | Register | | Exit | | Help |
\\ // \\ // \\ // \\ //
_______ _______ _______ _______
---------------------------------------------------------------------------------------
1. Login
2. Register
3. Exit
4. Help
Login: Enter your username and password to log in. Register: Enter a new username and password to register. Exit: Exit the program. Help: Display the help menu with instructions.
1.Username already exists:
Username already exists
2.Invalid username or password:
Invalid username or password