>> just looking at that source would make your eyes bleed
mmmm gotta looove that eye-bleeding feeling ...
int
void
this thread is stupid
>> just looking at that source would make your eyes bleed
mmmm gotta looove that eye-bleeding feeling ...
Whahahah I voted for void!!! On a side note, on the Game boy advance the c entry point into a program is void main() so it isn't always the evil plague that some would lead you to believe (like Salem for instance).
That aside I did vote "void main" to be an ass. int main is actually standard.
I am curious to see what you mean, post it!
I voted int main( ), last time I wrote code with void main() I received a proper telling off from prelude! It just wasn't worth the risk
Couldn't think of anything interesting, cool or funny - sorry.
how the hell did this trhead get over 100,000 votes???
PHP and XML
Let's talk about SAX
*takes a break from creating new accounts to vote 'this thread is stupid'*
whew, this is hard work guys. any help? a few more and we can hit the 5 million mark!
I came up with a cool phrase to put down here, but i forgot it...
Originally posted by Waldo2k2
how the hell did this trhead get over 100,000 votes???
Methinks a mod may have been been busy.
At least it didnt get deleted.
Such is life.
Who voted for "this thread is stupid"?
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.
Yes that is exactly right. I'm not advocating the use of void main(). Also, like any other device that doesn't use an operating system, I could make the c entry point int main(). Like the link says "...freestanding implementations are comparatively rare, and if you're using one, you probably know it" so all newbies completely disreguard my mensions of void main.Originally posted by Salem
> on the Game boy advance the c entry point into a program is void main()
But that's a freestanding implementation
See http://www.eskimo.com/~scs/C-faq/q11.12.html
And before you get all high about how it isn't a real world problem - forget it
There is one real implementation where void main is provably wrong and fatal
http://users.aber.ac.uk/auj/voidmain.shtml
NO offense to anyone but void main is for idiots who cant remember or are just to lazy to write return 0; or return whatever. if you use void main then go use another function.
C++ Rules!!!!
------------
Microsoft Visual Studio .NET Enterprise
I have a better idea. Instead of returning 0, simply return five thousand eight hundred and sixty two trilion multiplied by the multiplicative inverse of pi, divided by the area of a cone with a base area of 16 and a height of 20 billion added to the instantaneous 'velocity' of cheese being pulled into the gravitational pull of the eart, all to the 0 power, minus 1
EDIT:
That exhausts my math knowledge, and I don't even seem cool now that i think of it.
>NO offense to anyone but void main is for idiots who cant remember or are just to lazy to write return 0; or return whatever.
Especially since standard C++ returns 0 by default if main is defined as returning int and the return statement is omitted. Some arguments are that it's quicker to void main, but with standard C++ you have to type a whole extra character. So much for that argument.
-Prelude
My best code is written with the delete key.
I think that is the ANSI want it to me int main() just make int main() ... it's that simple