This is simple: your call <yourprogram> "add 0324782012" "set 0324782012 title Data Structures Using C++"
You get argc == 3 and you can get
argv[0] with "yourprogram"
argv[1] with "add 0324782012"
argv[2] with "set 0324782012 title Data Structures Using C++"
The separator is the blank and you need to take care of correct quoting.
To see how to get the parameter you can use this simple example:
int main(int argc, char* argv[])
{
cout << "argc = " << argc << endl;
for (int i = 0; i < argc; i++)
cout << "argv[" << i << "] = " << argv[i] << endl;
return 0;
}
The output:
argc = 3
argv[0] = x:\myprogram.exe
argv[1] = add 0324782012
argv[2] = set 0324782012 title Data Structures Using C++