How alefsantos497/diario-estudos-cpp works
This is a small C++ terminal study journal. The user selects an action from the menu: log hours for a subject, which updates the in-memory totals and saves them, or list accumulated totals. Startup loads saved totals and skips malformed records. The single source file implements all stages; the README documents the workflow and persistence format.
Main entry points: main.cpp Menu and dispatch
Components 9
Terminal workflow
- Menu and dispatch
main.cpp - Input validation
main.cpp - Study listing
main.cpp
Study records
- Study registration
main.cpp - Subject totals
main.cpp - File loading
main.cpp - File saving
main.cpp - estudos.txt
Other components
- User
Connections 11
- User → Menu and dispatch: chooses action
main.cpp - Menu and dispatch → Input validation: validates input
main.cpp - Menu and dispatch → File loading: loads at startup
main.cpp - Menu and dispatch → Study registration: registers study
main.cpp - Study registration → Subject totals: adds hours
main.cpp - Menu and dispatch → File saving: saves after entry
main.cpp - File saving → estudos.txt: writes records
main.cpp - File loading → estudos.txt: reads records
main.cpp - File loading → Subject totals: restores totals
main.cpp - Menu and dispatch → Study listing: lists totals
main.cpp - Study listing → Subject totals: displays totals
main.cpp