PDA

View Full Version : The for loop...


Greg
10-03-2003, 03:30 PM
Here's a nice use of the for loop... Although his code won't compile it's cute.

Anaconda
10-03-2003, 03:54 PM
What makes you say his code won't compile?

As far as I can see it's a perfectly correct ANSI C program.

Greg
10-03-2003, 04:13 PM
The main is defined as void and has a return. It should at least throw a warning.

Greg
10-03-2003, 04:14 PM
OOPS I see I read it wrong, main is an integer and it's passed no parameters. :(

Bond
10-03-2003, 04:46 PM
It still won't compile. Blackboards are notorious for causing errors in the C compiler. If only he would have used a text file...

Anaconda
10-03-2003, 05:12 PM
lol

yeah converting that chalk dust into bits can be a bugger. Especially hard to place the particles you dropped back in the right order :P

Zero Tolerance
10-03-2003, 09:31 PM
lol...good one!

zesti
05-08-2004, 12:11 PM
That's jokes!