![]() |
Some code in C that we may need if we are in trouble
1 Attachment(s)
Attached is a funny comic using C...enjoy!
|
hah, that's great, but he forgot to print \n
|
OMG!
if you understand this its funny |
They did another one like this, it was using applescript then... (I think...) it's good to see they've migrated their jokes to a real language. ;)
|
Quote:
|
Quote:
Like in the Bloodshed Dev-C++ 4.0.1 compiler/IDE, you just did something like Code:
printf("asdfasdfasdf");asdfasdfasdf press any key.... [Sorry, just felt like pointing that out] FotoPlasma posted this same comic in a different thread, and I saw this yesterday while sifting through the newspaper (those are so boring, thus I go straight and only look at the comics). NOTE: I don't use Dev-C++ anymore, I use Microsoft Visual Studio .NET and Microsoft Visual C++ 6.0 Enterprise Edition |
Yes, I was very surprised to see the comic yesterday because years ago, there was one in Applescript.
Also, \n is needed, Raven... your IDE just is acting nice and putting each new call on a new line. I use DEVC++ sometimes too. Heh, our team's electrical engineer sent out a team email about teaching people C, and his wife pointed out the comic immediately after he sent out the email - what a coinkydink. |
This makes me happy...
|
Quote:
Code:
for (count=0;count<500;count++) |
yeah, my old c++ teacher would kill us if we started from one. Good comic.
|
now that i think about it, you wouldn't need a new line return. when you write out things like that on a chalk board you go all the way across and down, so no new line is needed
I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. I will not throw paper airplanes in class. |
Quote:
I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class.I will not throw paper airplanes in class. ...nitpickers ;) |
Or you could have it just enough so that three lines fit and then throw in a newline like so:
Code:
#include <cstdio> |
I would have skipped the count, and used a goto at the end to create an infinite loop
and let it run all night the next day every blackboard in the school would be completely covered in chalk 1" deep! |
Quote:
<edit> Oh, sorry. You're using different indexes. Heh. Either way, good idea. </edit> |
| All times are GMT -5. The time now is 23:52. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi