A console-based Login and Registration System developed in C++ to practice file handling, user authentication, and fundamental programming concepts. This project allows users to create an account and log in using stored credentials.
This project was created to strengthen my understanding of C++ programming by implementing a simple authentication system. User information is stored using file handling, allowing registered users to log in with their saved credentials.
- User Registration
- User Login
- Credential Validation
- File-Based Data Storage
- Console-Based Interface
- Simple Menu-Driven Navigation
- C++
- Standard Template Library (STL)
- File Handling
- GCC/G++ Compiler
- Code::Blocks IDE
- Code::Blocks IDE (with the built-in GCC/G++ compiler)
- Windows Operating System
- Download or clone this repository.
- Open the project in Code::Blocks.
- Make sure the project is using the GCC/G++ compiler included with Code::Blocks.
- Build and run the project by pressing F9 or selecting Build → Run.
- Follow the on-screen instructions to register a new account or log in.
Note: This project was developed and tested using Code::Blocks with the GCC/G++ compiler. It may require modifications to compile correctly in other IDEs or compilers.
Login_And_Registration_System/
│
├── images/
│ ├── Main-Menu.png
│ ├── Register.png
│ ├── Login.png
│ ├── Unsuccessful-Registration.png
│ ├── UnsuccessfulLogin.png
│ └── Exit.png
│
├── Code_Alpha_Login_And_Registration_System.cpp
├── username_output.txt
└── README.md
Through this project, I improved my understanding of:
- File handling in C++
- Reading from and writing to text files
- User authentication logic
- Menu-driven programming
- Input validation
- Functions and modular programming
- Problem-solving using C++
- Password masking during input
- Password hashing for better security
- Forgot Password functionality
- Account deletion
- Better error handling
- Graphical User Interface (GUI)
Rida Fatima Shahbaz
BS Computer Science Student
COMSATS University Islamabad, Lahore Campus





