Page 1 of 1 [ 8 posts ] 

andy1976uk
Veteran
Veteran

User avatar

Joined: 9 Dec 2006
Gender: Male
Posts: 1,122

23 Jan 2007, 4:24 pm

#include <stdio.h>

int main ()
{
while (1)
{
printf ("PSOT!! !!\n");
}
}



Jameson
Veteran
Veteran

User avatar

Joined: 3 Jan 2007
Gender: Male
Posts: 2,877
Location: Here and there.

23 Jan 2007, 5:29 pm

WARNING: No return statement.


_________________
Air·is·water·with·holes·in·it. Think·honk·if·you're·a·telepath. Never·call·a·man·a·fool.·Borrow·from·him. A·tautology·is·a·thing·which·is·tautological. Hi!·I'm·a·.signature·virus!·Copy·me·into·your·~/.signature·to·help·me·spread!


RTSgamerFTW
Veteran
Veteran

User avatar

Joined: 27 Sep 2006
Gender: Male
Posts: 5,410

23 Jan 2007, 5:58 pm

Huh?!?!

That ain't PSOT BTW.


_________________
My sig pwns.


andy1976uk
Veteran
Veteran

User avatar

Joined: 9 Dec 2006
Gender: Male
Posts: 1,122

23 Jan 2007, 6:21 pm

Unknown wrote:
Huh?!?!

That ain't PSOT BTW.


It is if you compile and run it. It's actually infinite PSOT.



andy1976uk
Veteran
Veteran

User avatar

Joined: 9 Dec 2006
Gender: Male
Posts: 1,122

23 Jan 2007, 6:24 pm

Jameson wrote:
WARNING: No return statement.


*muttering quietly under breath* "Return statements? Seldom use 'em" :oops:

*Visual C++ finishes build sequence....."main.cpp: 0 errors, 298 warnings"*

Ahhh, who cares, they're only warnings! *promptly gets hired by microsoft* :twisted:



Atomika
Veteran
Veteran

User avatar

Joined: 9 Jan 2007
Gender: Male
Posts: 738

23 Jan 2007, 7:00 pm

So, is anyone going to lock this yet????



andy1976uk
Veteran
Veteran

User avatar

Joined: 9 Dec 2006
Gender: Male
Posts: 1,122

23 Jan 2007, 7:15 pm

Atomika wrote:
So, is anyone going to lock this yet????


Well, it is lacking a return statement and has no ability to deal with command-line parameters, so it could be very offensive to some. No doubt ascan or one of his aliases (allegedly) will find something sub-moderatorish and worthy of starting a flame war over. :(



ahayes
Veteran
Veteran

User avatar

Joined: 2 Dec 2006
Gender: Male
Posts: 9,506

23 Jan 2007, 8:06 pm

I built it in xcode and there were 0 errors and 0 warnings. Seems to run. I'm sure if you tried this in Windows you'd lock up your computer though.