Why int main( int argc, char* args[] )??

1
2
3
4
int main( int argc, char* args[] )
{
     return 0;
}

I'm learning SDL right now, and every tutorial I come across says not to worry about the parameters of the main function. An explanation from someone would really be appreciated!
Those variables are the command line used to execute your program.

IE, if the user launches your program with the following from the commandline:
myprogram.exe -fullscreen somefile.sav

The parameters will have the below values:
1
2
3
4
argc = 3
args[0] = "myprogram.exe"
args[1] = "-fullscreen"
args[2] = "somefile.sav"
Thanks Disch!
Topic archived. No new replies allowed.