I just had to...
int
void
this thread is stupid
I just had to...
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
Who voted void? And have they been members for more than .21 nanoseconds?
-Prelude
My best code is written with the delete key.
10 to 1 a newbie.Who voted void?
I VOTE INT MAIN!!!!! (the only way to go)
Code:std::pair<int,void> main() { }
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
hehe, i couldn't help it
Try not.
Do or do not.
There is no try.
- Master Yoda
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.
-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.)
"When the only tool you own is a hammer, every problem begins to resemble a nail." Abraham Maslow
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!
Last edited by Shadow12345; 11-14-2002 at 07:19 PM.
Don't forget goto.
Curse me for a fool! I completely forgot about "goto"!
Good one, golfinguy4!
-Skipper
"When the only tool you own is a hammer, every problem begins to resemble a nail." Abraham Maslow
void main? goto? *sigh* when will you guys learn that longjmp is the only way to fly
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
How come this wasnt closed already?
What about:
main()
Is that acceptable? or should it be int main()?
-MethodMan-
Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.
Homepage: http://www.freewebs.com/andy_moog/home.html
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.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
My best code is written with the delete key.