No! void main is neither C++ nor C. It never was and it never will be. The only reason void main may be taught is out of ignorance by the instructor.
No! void main is neither C++ nor C. It never was and it never will be. The only reason void main may be taught is out of ignorance by the instructor.
Cmon, we need a few more pro void-main'ers() and we can turn this thread into God-- v2.0
I'm a void mainer!! Int main just sux!! And what's this about undefined behaviour? I define the behaviour of my programs!! And another thing, memory allocation. What's the point in using delete?! If you're running one of my programs you have no need to run anything else, so the system doesn't need back the memory I allocate!! Deleting stuff just takes longer to code.
Who gives a ****? I don't care if somebody uses void main as long as I never have to edit or root through any of their code.
So when some iraq programmer writes the "do not fire" program for some deadly iraq missile and uses void main() and it misruns and fires and we all die you won't care?Originally posted by Brian
Who gives a ****? I don't care if somebody uses void main as long as I never have to edit or root through any of their code.
Heh heh heh. I just got a funny image of Saddam doing that just to tick us off.
DAM YOU SADDAM!!!Originally posted by Ride -or- Die
So when some iraq programmer writes the "do not fire" program for some deadly iraq missile and uses void main() and it misruns and fires and we all die you won't care?
Dont try to defend void main();
One day, your laziness and not caring about the standard crap will come back to haunt you. Sometime in the future, you'll run a program that uses void main(), and it'll BLOW UP YOUR COMPUTER!
- Dean
Unless you wrote your own operating system, compiler, and console, no, you don't. If you've read this whole thread, you'd realize how much can go wrong using void main like the instance where someone's computer beeped because of void main.Originally posted by minesweeper
I'm a void mainer!! Int main just sux!! And what's this about undefined behaviour? I define the behaviour of my programs!!
Are you really that lazy? Deleting something only takes one line of code for every new you used. Memory leaks are very bad. They may not be causing any problems now in whatever insignificant programs you write now, but if you ever write something larger, they will become an issue.And another thing, memory allocation. What's the point in using delete?! If you're running one of my programs you have no need to run anything else, so the system doesn't need back the memory I allocate!! Deleting stuff just takes longer to code.
I have no clue what you mean by "no need to run anything else". I really hope you never become a professional programmer, because with your bad habits you'll be crashing computers constantly.
If you want to be a lazy, incompetant, ignorant programmer, I guess that's your right. I just really hope that nothing you program ends up on my computer, because if it does, I'll hunt you down and make you pay.
You are wrong. You are just plain wrong. ANSI says you're wrong; the creator of C++ says you're wrong; and everyone here is telling you that you're wrong. The fact that you still cling to your void main despite its innate wrongness shows that you are stubborn and ignorant. You'll get nowhere in the world with thinking like that.
FAQ
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.
"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.
[whisper]It was a joke![/whisper]Originally posted by joshdick
[B]Unless you wrote your own operating system, compiler, and console, no, you don't. If you've read this whole thread, you'd realize how much can go wrong using void main like the instance where someone's computer beeped because of void main.
Are you really that lazy? Deleting something only takes one line of code for every new you used. Memory leaks are very bad. They may not be causing any problems now in whatever insignificant programs you write now, but if you ever write something larger, they will become an issue.
I have no clue what you mean by "no need to run anything else". I really hope you never become a professional programmer, because with your bad habits you'll be crashing computers constantly.
If you want to be a lazy, incompetant, ignorant programmer, I guess that's your right. I just really hope that nothing you program ends up on my computer, because if it does, I'll hunt you down and make you pay.
You are wrong. You are just plain wrong. ANSI says you're wrong; the creator of C++ says you're wrong; and everyone here is telling you that you're wrong. The fact that you still cling to your void main despite its innate wrongness shows that you are stubborn and ignorant. You'll get nowhere in the world with thinking like that.
Well good. Anyone too lazy to type a few extra lines to save lots of memory, and is too lazy to type return 0; is an idiot. Laziness like that is only rewarded with a weak program that can have tons of run-time errors.Originally posted by Eibro
[whisper]It was a joke![/whisper]
-Dean
Oh, okay. Sorry, but with all the stupidity being spewed forth by some of the posts in this thread, it's tough to tell. People who can be that stubborn and ignorant just really get me fired up.Originally posted by Eibro
[whisper]It was a joke![/whisper]
FAQ
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.
"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.