
-----------------------------------
resq
Sun Feb 06, 2005 10:51 am

Question about input
-----------------------------------
I'm just learning C++ so there are somethings that are confusing me. i am using g++ on linux to complie my programs.

I have this database of employee records. I am trying to create the user interface for this database. Now how do I make it so I can input commands plus their parameters in one line? 

ie) some commands are:
newrec number- makes a new record with 'number' as employee number
printdb - prints the employee records
update  number firstname lastname - updates a record with emplloyee number and adds a first name and last name

ok. the problem for me is being able to handle many or no parameters.
if I did this:
string command;
int parameter1;
cin 