So I've gotten kinda stuck. I'm trying to figure out this command-line arguments stuff.
Basically if a user enters an integer x in the command line after the program name, how can I use this integer in my main() function? I can use the number they put in.
Heres a lil sample of the code
for ( i = 0; i < argv; i++ )
die1 = rollDie();
resultArray2[total - 1]++;
but it won't compile, saying I can't compare an integer (i) to a pointer (argv). I've read 4 tutorials on command-line stuff and I haven't found anything that helps.