How sskeme/eeee346-f26-hw4 works
This small C++ assignment is a command-line string utility. The user selects concatenation, substring, reversal, or leading-space trimming; main.cpp dispatches to the corresponding handler, which reads input, calls the matching function in string_functions.cpp, and prints the result. The README documents these operations; the sampled source confirms the dispatch and implemented concat function, while the other three function bodies are TODOs. Sampled evidence does not show additional runtime layers.
Main entry points: main.cpp Operation dispatcher · string_functions.cpp String functions
Components 8
Other components
- User
- Operation dispatcher
main.cpp - Concat handler
main.cpp - Substring handler
main.cpp - Reverse handler
main.cpp - Ltrim handler
main.cpp - String functions
string_functions.cpp - Terminal output
Connections 13
- User → Operation dispatcher: enters operation
- Operation dispatcher → Concat handler: dispatches
- Operation dispatcher → Substring handler: dispatches
- Operation dispatcher → Reverse handler: dispatches
- Operation dispatcher → Ltrim handler: dispatches
- Concat handler → String functions: calls concat
- Substring handler → String functions: calls substring
- Reverse handler → String functions: calls reverse
- Ltrim handler → String functions: calls ltrim
- Concat handler → Terminal output: prints result
- Substring handler → Terminal output: prints result
- Reverse handler → Terminal output: prints result
- Ltrim handler → Terminal output: prints result