^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
very very very evil, it will DESTROY you
very very evil, it will make your life miserable
very evil, it will get you in trouble
evil, it will screw something up
neutral; you can use it if you want
good, it is simple
very good, it is simple and easy
very very good, it is your best friend
very very very good, it will SAVE YOUR LIFE
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.
NOOOO - EVIL!!!!!! evil I say!!!!
The knack of flying is learning to throw yourself at the ground and miss.
What's wrong with void main()?
CodeMonkey666, Prelude's gonna kill you.
lol it wont DESTROY me, it will make me miserable though
int main {} :P
No I DIDN'T steal my name from Misro$ofts OS, it's pure coincidence.
The lines around my name (-) are only there because i needed a name over the 3 character minimum letter limit
Not if one of the others get to him firstCodeMonkey666, Prelude's gonna kill you.
The knack of flying is learning to throw yourself at the ground and miss.
Everybody needs to quit complaining* about void main(), if someone else wants to use it, let them, as long as you don't have to work with their code.
*Editted for content by Kermi3
-Save the whales. Collect the whole set.
Void main isn't evil, it's just wrong. Anyway, any decent modern compiler ignors void main() and makes it int main() behind your back.
Evil = WrongVoid main isn't evil, it's just wrong
What compiler u using?any decent modern compiler ignors void main() and makes it int main() behind your back.
The knack of flying is learning to throw yourself at the ground and miss.
>>Evil = Wrong
If you want to define evil that way, I won't argue.
Usually gcc under Linux. Most modern compilers that will accept void main() actually compile it as int main(), they just doesn't tell you that's what they're doing. Myself, I always use int main().
That's one of the evil things I know, (void main) not defining it.If you want to define evil that way, I won't argue
Same here. when I started C++ and use *ahem* "void main", my instructor almost beat the living crap out of me.Myself, I always use int main().
The knack of flying is learning to throw yourself at the ground and miss.
if youre a sloppy programmer, feel free to void main, but if you are professional and want to program properly, int main....bottom line. It all comes down to good habits. Just like smoking is a bad habit, sure at first it feels good and stuff, but eventually IT WILL KILL YOU.
Correct me if I'm wrong, but when declaring main to return an int you can decide which exit code is returned. When declaring main to return a void (nothing) the exit code is predefined (ie: 0).
http://msdn.microsoft.com./library/d...n_function.asp
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
True. 0 is the code for "a normal exit" - no errorsCorrect me if I'm wrong, but when declaring main to return an int you can decide which exit code is returned. When declaring main to return a void (nothing) the exit code is predefined (ie: 0).
The knack of flying is learning to throw yourself at the ground and miss.
Then what's so evil about it? Ok, you cannot specify an error return code if your program fails to do some stuff, but that seems kinda minor to me...
(I still use int main, so don't accuse me to be a voider )
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.