How zain-snippet/student-cli works
This is an interactive C++ student-record manager. The user enters through the command-line menu, then can create, inspect, search, or delete in-memory student records and separately save, display, load, or clear the Student.txt file. The menu also reports lifetime and current counts. The graph reflects the sampled implementation: menu dispatch is centralized in manage_inputs, while the feature functions directly operate on the vector or file. Student.txt is documented and used by code, but is not present in the supplied file tree.
Main entry points: Functions.cpp Input menu · Student.cpp Student model · main.cpp Program entry
Components 15
CLI entry
- Program entry
main.cpp - Input menu
Functions.cpp
Student records
- Student model
Student.cpp - In-memory records
- Add student
Functions.cpp - Display records
Functions.cpp - Search student
Functions.cpp - Delete student
Functions.cpp - Clear memory
Functions.cpp - Student counts
Functions.cpp
File persistence
- Save records
Functions.cpp - Load or display file
Functions.cpp - Clear file
Functions.cpp - Student.txt
Other components
- User
Connections 28
- User → Program entry: starts
- Program entry → Input menu: calls
- User → Input menu: selects
- Input menu → Add student: dispatches
- Input menu → Display records: dispatches
- Input menu → Search student: dispatches
- Input menu → Delete student: dispatches
- Input menu → Clear memory: dispatches
- Input menu → Save records: dispatches
- Input menu → Load or display file: dispatches
- Input menu → Clear file: dispatches
- Input menu → Student counts: dispatches
- Add student → In-memory records: adds records
- Add student → Student model: constructs
- Display records → In-memory records: reads
- Display records → Student model: displays fields
- Search student → In-memory records: searches
- Search student → Student model: reads fields
- Delete student → In-memory records: removes records
- Delete student → Student model: reads fields
- Clear memory → In-memory records: clears
- Student counts → In-memory records: counts current
- Student counts → Student model: reads lifetime count
- Save records → In-memory records: reads records
- Save records → Student.txt: writes
- Load or display file → Student.txt: reads
- Load or display file → In-memory records: appends records
- Clear file → Student.txt: truncates