A console-based Student Portal System in C++ that supports registration, login, result calculation, and record management using file handling. It demonstrates core programming concepts including file I/O, control structures, and a menu-driven interface for efficient data processing.
A professionally designed console-based Student Portal System developed in C++, built to simulate a real-world academic environment. This project allows students to register, log in securely, calculate their academic results, and manage records using file handling for persistent data storage.
Clone the project to your local machine:
git clone https://github.com/Nouman-Irfan/Student-Portal-Console-App.git🔐 Authentication System
- Student registration with unique ID
- Secure login using ID & password
- Credential verification through file matching
📊 Result Management
- Calculate percentage based on 5 subjects
- Prevent duplicate result entries
- Store results permanently in files
📄 Data Retrieval
- View individual student result after login
- Print formatted result card
- Display all results (filtered by odd serial numbers)
💾 Persistent Storage
- Data stored using text files
- Maintains records even after program closes
- 📁 File Handling (
ifstream,ofstream) - 🔁 Loops & Conditional Logic
- 🔤 Arrays & C-Strings
- 🧩 Menu-Driven Programming
- 🔍 String Comparison & Data Matching
- 💡 Basic Data Management System Design
main.cpp for the program to function properly.
reg.txt→ Stores registered Student IDspswd.txt→ Stores corresponding passwordsresult.txt→ Stores calculated student results
📌 These files act as a simple database for the system.
Before running the project, ensure you have:
- ✅ A C++ Compiler (GCC, MinGW, or Visual Studio)
- ✅ Basic understanding of C++
- ✅ All required
.txtfiles present in the project directory
- Open the project in any C++ IDE (VS Code, Dev C++, Visual Studio, etc.)
- Place all required
.txtfiles in the same folder asmain.cpp - Compile the program
- Run the executable
- Use the interactive menu to navigate features
This project is developed strictly for educational purposes. Passwords are stored in plain text, making it unsuitable for production-level security systems.
- 🔒 Implement password encryption (hashing)
- 🧵 Replace C-style arrays with
string - 🗃️ Use a structured database instead of text files
- 🖥️ Develop a GUI version (Qt / C++ GUI frameworks)
- 🔁 Refactor code using functions and modular design
**MUHAMMAD NOUMAN ** (BSCS STUDENT)