How kcarloshl/sistema-funcionarios-dependentes works
This is a small interactive C++ employee-and-dependent registry. A user selects an operation in the terminal; main dispatches it to the corresponding record operation, which reads or changes in-memory vectors. Dependent registration checks the responsible employee’s CPF, and successful employee deletion triggers removal of that employee’s dependents. The README documents the full capability set and confirms there is no persistent storage. Relationships shown are supported by the excerpts and README.
Main entry points: programa.cpp Application loop · menu.cpp Interactive menu · dados.cpp Dependent registration
Components 12
Interaction and control
- Interactive menu
menu.cpp - Application loop
programa.cpp
Record operations
- Employee registration
dados.cpp - Dependent registration
dados.cpp - Employee listing
dados.cpp - Dependent listing
dados.cpp - Employee editing
dados.cpp - Dependent editing
dados.cpp - Employee deletion
dados.cpp - Dependent cleanup
dados.cpp
Runtime state
- Record vectors
programa.cpp
Other components
- Terminal user
Connections 15
- Terminal user → Interactive menu: chooses option
menu.cpp - Application loop → Interactive menu: calls
programa.cpp - Interactive menu → Application loop: returns option
menu.cpp - Application loop → Record vectors: initializes
programa.cpp - Application loop → Employee registration: dispatches registration
programa.cpp - Application loop → Dependent registration: dispatches registration
programa.cpp - Application loop → Employee listing: dispatches listing
programa.cpp - Application loop → Dependent listing: dispatches listing
programa.cpp - Application loop → Employee editing: dispatches editing
programa.cpp - Application loop → Dependent editing: dispatches editing
programa.cpp - Application loop → Employee deletion: dispatches deletion
programa.cpp - Application loop → Dependent cleanup: dispatches cleanup
programa.cpp - Dependent registration → Record vectors: checks employee CPF
dados.cpp - Application loop → Record vectors: stores records
programa.cpp - Employee deletion → Dependent cleanup: returns deleted CPF
programa.cpp