A fast and simple command-line student management system written in pure C.
Manage student records, store them locally, and perform full CRUD operations โ all from the terminal.
Built as a practice project for learning structs, file handling, input validation, and program flow in C.
- โ Add students
- ๐ Delete students by ID
- โ Update student info
- ๐ List all students
- ๐พ Auto-save to file
- ๐ข Auto-increment student IDs
- โ Safe input validation
All data is saved in:
students.txt
So nothing is lost when the program closes.
Each student record contains:
ID | Name | Surname | Age
Data is stored in CSV-like format:
1,Ali,Aliyev,20
2,Leyla,Mammadova,22
- C (ANSI C)
- File I/O
- Structs
- Input validation
- Console interface
No external libraries.
gcc main.c -o student-manager
./student-manager
student-manager.exe
1 โ Add student
2 โ Delete student
3 โ Update student
4 โ Show all students
5 โ Exit
- Names โ letters only
- Age โ 1 to 120
- Invalid input โ rejected safely
Practice core C programming concepts:
- memory & structs
- file persistence
- user input handling
- CRUD logic
- program architecture
- Search by name or ID
- Sorting
- Binary storage
- GUI version
- Database support
- Edit specific fields only