Originally posted by: anxi80
this is the original. the one linked is the repost.![]()
DOH!!!
<--- wipes egg off face
I need to go home....augh...been doing documentation all day. My mind is mush.
Originally posted by: anxi80
this is the original. the one linked is the repost.![]()
Originally posted by: WannaFly
Hah thats pretty cool except the output would look like this
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.
forgot to add \n
![]()
Originally posted by: xcript
Originally posted by: SaltBoy
I hope you're not being serious.Originally posted by: NogginBoink
Originally posted by: xcript
Oh dear, the outputted strings are not newline-terminated.![]()
I noticed that myself. Kinda makes the comic not-quite-as-funny.![]()
We are. Here's a patch:
---------------------------- Cut here -----------------------------
--- foo.c 2003-10-03 06:21:58.000000000 -0700
+++ bar.c 2003-10-03 06:21:52.000000000 -0700
@@ -4,7 +4,7 @@
int count;
for(count=1; count<=500; count++)
- printf("I will not throw paper airplanes in class.");
+ printf("I will not throw paper airplanes in class.\n");
return 0;
}
---------------------------- Cut here -----------------------------
You beat me to it. There is no way of legibly writing that sentence 500 times on that small chalkboard with chalk if you use a new line each time.Originally posted by: nitsuj3580
have you ever seen a show where they have a kid write, "I will not..." 100+ times? They always just write from left to right til they reach the end of the chalk board then go back to the far left side on the next line to continue exactly how you just wrote "i will not throw paper airplanes in class" over and over again. They don't start a new line every time they write it.
In this case, no \n is needed![]()
Originally posted by: nitsuj3580
Originally posted by: WannaFly
Hah thats pretty cool except the output would look like this
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.
forgot to add \n
![]()
have you ever seen a show where they have a kid write, "I will not..." 100+ times? They always just write from left to right til they reach the end of the chalk board then go back to the far left side on the next line to continue exactly how you just wrote "i will not throw paper airplanes in class" over and over again. They don't start a new line every time they write it.
In this case, no \n is needed![]()
Originally posted by: MegaloManiaK
Originally posted by: nitsuj3580
Originally posted by: WannaFly
Hah thats pretty cool except the output would look like this
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.
forgot to add \n
![]()
have you ever seen a show where they have a kid write, "I will not..." 100+ times? They always just write from left to right til they reach the end of the chalk board then go back to the far left side on the next line to continue exactly how you just wrote "i will not throw paper airplanes in class" over and over again. They don't start a new line every time they write it.
In this case, no \n is needed![]()
Everytime ive had to do "write-offs" on the chalkboard you started a new line each time and then at the bottom started a new row.
Originally posted by: crisp82
Originally posted by: RishiS
Ha! We're all such nerds.
