C++ read from file and execute commands
Say I need to read commands from a file and execute different directives
based on them, by calling methods. How could I go about this? I'm pretty
lost but I know ifstream would be useful.
If the file were
print 3
evaluate 7 -2.3
add 1 2
differentiate 0
evaluate 3 -1.277
Any help would be appreciated
No comments:
Post a Comment