Why int main( int argc, char* args )??
int main( int argc, char* args )
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:
argc = 3
args = "myprogram.exe"
args = "-fullscreen"
args = "somefile.sav"
Topic archived. No new replies allowed.