I'm new to C++ and I'm trying to create a program that accepts command through command line.
So My program starts like ./program -f filename -m tablesize. I found that these arguments could be processed by passing arguments to the main() function, namely, by doing main(int argc, char** argv).
However, after the program starts, I would like to make it be able to accept input command such as l key, which would look up a certain value of ID key. So, how should I make my program being able to accept a variety of commands after it started?
My Guess: Can I just accept input and parse the input ? I am given that I cannot use any STL to accomplish the work.