Expression Recorder on C++
C++
Define an "Expression" class that manages expression info: operand1 (integer), operand2 (integer), and the expression operator (char).
It must provide at least the following method:
- toString() to return a string containing all the expression info such as
50 + 50 = 100
Write a command-driven program named "ListExpressions" that will accept the following commands:
add, listall, listbyoperator, listsummary, exit.
- "add"... Читать дальше...