|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Some code in C that we may need if we are in trouble
Attached is a funny comic using C...enjoy!
|
|
#2
|
|||
|
|||
|
hah, that's great, but he forgot to print \n
|
|
#3
|
|||||
|
|||||
|
OMG!
if you understand this its funny |
|
#4
|
||||
|
||||
|
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.
![]() |
|
#5
|
||||
|
||||
|
Quote:
). |
|
#6
|
|||||
|
|||||
|
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 Last edited by Raven_Writer : 04-10-2003 at 17:32. |
|
#7
|
|||||
|
|||||
|
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. |
|
#8
|
||||
|
||||
|
This makes me happy...
|
|
#9
|
|||||
|
|||||
|
Quote:
Code:
for (count=0;count<500;count++) ![]() |
|
#10
|
|||||
|
|||||
|
yeah, my old c++ teacher would kill us if we started from one. Good comic.
|
|
#11
|
|||||
|
|||||
|
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. |
|
#12
|
||||
|
||||
|
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 ![]() |
|
#13
|
||||
|
||||
|
Or you could have it just enough so that three lines fit and then throw in a newline like so:
Code:
#include <cstdio>
using namespace std;
main()
{
int i = 0, n = 0;
while( i < 500 )
{
printf("I will not throw paper airplanes in class.");
i++;
n++;
if( n == 3)
{
printf("\n");
n = 0;
}
}
return 0;
}
![]() |
|
#14
|
||||
|
||||
|
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! |
|
#15
|
||||
|
||||
|
Quote:
![]() <edit> Oh, sorry. You're using different indexes. Heh. Either way, good idea. </edit> |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is your most prefered programming language? | Hailfire | Programming | 156 | 19-01-2005 21:42 |
| Open source | Jeff_Rice | Programming | 16 | 25-03-2003 23:40 |
| Autonomous code | PBoss | Programming | 7 | 14-01-2003 15:29 |
| Does your team use the Default code. | Jeff McCune | General Forum | 2 | 09-01-2003 14:46 |
| Patent source code? | Kyle Fenton | Chit-Chat | 3 | 20-10-2001 17:53 |