#include #include #include #include "Parser.h" using namespace std; void PrintOperation(const CommandT & op); int main() { ifstream inFile; CommandT operation; inFile.open("computations.cmds"); operation = ParseNextLine(inFile); while (operation.op != OperatorT::QUIT) { PrintOperation(operation); operation = ParseNextLine(inFile); } inFile.close(); return 0; } void PrintOperation(const CommandT & op) { int i; cout << OperatorTToString(op.op); for( i = 0; i < op.operandCount; ++i) { cout << " " << op.operands[i]; } cout << endl; return; }