Ooopps...froggy has just replied BUT[/edit]
Im still confused... I MUST have (2 char array parameters - one for the authors name...the other has some file's path)
Do you mean char argc??? and if so, is it considered as just a variable with one character in it only???
> int main(int argc, char *argv)
Does this have something like this contained within itself(where each line is due to a space):
OR is it just c:\my documents\web interface\generate.exe
In the loop above, argc is not an array (though I think it should be) so how does this print as though it was an array??
[I] for (int i = 1; i < argc; i++)
cout << argc << endl;
Would the above code be correct for printing argv (I dont think its right)
for (int i = 0; i < argv; i++)
cout << argv[i] << endl;
your web interface must pass the information as strings to the command line (with quotes if there are spaces in the string)
Finaly, you say to put quotes if there are spaces, I think on many occassions this would be true. Would I therefore write main's parameters as:
int main(char "argc", char "*argv")