How jeremyzhang0130/bas works
BAS is a homework bank-administration command-line program. A user enters line-oriented commands; the main loop passes each command to a dispatcher, which validates and routes account, user, date, and persistence operations and prints their results. Account and user records are held in shared in-memory state, while date operations calculate interest as time advances. The README is brief, so the capability map follows the sampled command dispatcher and modules; unsampled implementation details are not inferred.
Main entry points: Cate.h Command dispatcher · MainFile.cpp Runtime collections · BasicFunctions.h Account commands · UserFunctions.h User commands
Components 9
Command entry
- Input loop
MainFile.cpp - Command dispatcher
Cate.h
Banking operations
- Account commands
BasicFunctions.h - Save and history
BasicFunctions.h
User administration
- User commands
UserFunctions.h
Date and interest
- Date and interest
TimeInterest.h
Shared state
- Account records
Account.h - Runtime collections
MainFile.cpp
Other components
- CLI user
Connections 11
- CLI user → Input loop: enters commands
MainFile.cpp - Input loop → Command dispatcher: dispatches lines
MainFile.cpp - Command dispatcher → Account commands: routes banking
Cate.h - Command dispatcher → User commands: routes users
Cate.h - Command dispatcher → Date and interest: routes dates
Cate.h - Command dispatcher → Save and history: routes history
Cate.h - Account commands → Account records: updates records
BasicFunctions.h - Account commands → Runtime collections: reads and writes
BasicFunctions.h - User commands → Runtime collections: reads and writes
UserFunctions.h - Date and interest → Runtime collections: accrues interest
TimeInterest.h - Input loop → Runtime collections: initializes state
MainFile.cpp