command line argument

Re: command line argument

Post by BhaaL on Fri Oct 17, 2008 10:57 am
([msg=13860]see Re: command line argument[/msg])

Thats more like it.
But, work on your coding style. You declare variables but dont use them, and you do not break; every case. If you were to add another case there, you'd probably be surprised if you choose 2 and get both one.exe and your new entry run.
BhaaL
Poster
Poster
 
Posts: 270
Joined: Sun Apr 13, 2008 11:16 am
Blog: View Blog (0)


Re: command line argument

Post by L0DER on Fri Oct 17, 2008 11:05 am
([msg=13861]see Re: command line argument[/msg])

If you were to add another case there, you'd probably be surprised if you choose 2 and get both one.exe and your new entry run.

Dude, I'm not stupid.
And I didn't use the break; because it wasn't necessary.
Ahh and *buffer was part of a previous solution. :oops: my bad.
L0DER
New User
New User
 
Posts: 26
Joined: Tue Apr 22, 2008 12:58 am
Blog: View Blog (0)


Previous

Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests