[edit]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)
Code:
> int main(int argc, char *argv[])
Do you mean char argc??? and if so, is it considered as just a variable with one character in it only???
Does this have something like this contained within itself(where each line is due to a space):
c:\my
documents\web
interface\generate.exe
OR is it just c:\my documents\web interface\generate.exe
Code:
[I] for (int i = 1; i < argc; i++)
{
cout << argc << endl;
}
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??
Code:
for (int i = 0; i < argv; i++)
cout << argv[i] << endl;
Would the above code be correct for printing argv (I dont think its right)
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:
Code:
int main(char "argc", char "*argv[]")
Thank you