Miscellaneous > Programming & Networking
quick C question
Stryker:
I'm having a problem with this:
--- Code: ---
--- End code ---
It gives the output:
--- Code: ---
--- End code ---
I think there is a problem with my while statement. I did it with for just fine, I'm just thinking I can do it with while too.
I probably look stupid, but I'm trying to brush up on some C skills.
[ July 01, 2003: Message edited by: Stryker ]
Stryker:
bah, nm i was being stupid. it's 2am though. what do you expect?
You can't program at 2am without pizza and beer.
suselinux:
you can't do anything at 2am without pizza and beer
solo:
Actually, I find ET to be extremely easy even without beer and pizza... however, I need vast amounts of drugs at 2 am in the morning
jtpenrod:
quote:while (x=0,x!=argc,x++)
--- End quote ---
The commas are the problem: these should be semi's.
____________________________________
Live Free or Die: Linux
"There: now you'll never have to look at those dirty Windows anymore"
--Daffy Duck
Navigation
[0] Message Index
[#] Next page
Go to full version