I just had to...
Printable View
I just had to...
Who voted void? And have they been members for more than .21 nanoseconds?
-Prelude
10 to 1 a newbie.Quote:
Who voted void?
I VOTE INT MAIN!!!!! (the only way to go):p
Code:std::pair<int,void> main()
{
}
hehe, i couldn't help it
My answer: Check in Salemīs Avatar!!!
My answer: either way you return int. void just makes the returned value undefined.
Prelude,
>Who voted void? And have they been members for more than .21 nanoseconds?
300 gazillion posts, or something like that, and you can still sense the "void main()" question. It's a gift, I swear. :D
-Skipper
P.S. to ygfperson: Exactly! And, it's the "undefined" part that should scare the whoopie out of folks. (Hope I didn't offend anyone.)
void main is the best. I love void main. In fact if I use int main I get stomach aches and begin to vomint. I also use tons of global variables, magic numbers, I fail to include comments, I use goto statements, and I consistently have loops that iterate thousands of times sending copies of large data structures into functions without using pointers!
Don't forget goto.
Curse me for a fool! I completely forgot about "goto"!
Good one, golfinguy4! :)
-Skipper
void main? goto? *sigh* when will you guys learn that longjmp is the only way to fly :D :D
How come this wasnt closed already?
What about:
main()
Is that acceptable? or should it be int main()?
the 2 people who voted for void main better watch out when prelude comes along...
>Is that acceptable? or should it be int main()?
Not in C++ it isn't.
>better watch out when prelude comes along...
I have to know who they are to dole out punishment accordingly.
Ahem. You also forgot insane function pointers. I wrote a program one time that used only a simulated goto-like effect through the heavy use of function pointers. If I find it I'll post it, just looking at that source would make your eyes bleed. :DQuote:
void main is the best. I love void main. In fact if I use int main I get stomach aches and begin to vomint. I also use tons of global variables, magic numbers, I fail to include comments, I use goto statements, and I consistently have loops that iterate thousands of times sending copies of large data structures into functions without using pointers!
-Prelude