Use void main and i will come to your house with a dull spoon and castrate you. If that isnt bad enough, im bringing govtcheez and -ken- with me.
Printable View
Use void main and i will come to your house with a dull spoon and castrate you. If that isnt bad enough, im bringing govtcheez and -ken- with me.
Why do people kill, rape, and steal? Why don't we all just get along in peace? Why do authors write void main()?
The answer is simple: people are idiots. If an author doesn't know how to properly define main(), I wouldn't trust him about a darn thing. Get yourself a better book is my advice.
>Use void main and i will come to your house with a dull spoon and castrate you. If that isnt bad enough, im bringing govtcheez and -ken- with me.
Yikes, now that would be scary.
Who's that author that always gets the "not recommended" rating from that academic computing org? You know the one that comes out with like 5 books a year. I wonder if he uses void main()?
Yes he does and no he doesn't:Quote:
Originally posted by swoopy
>Use void main and i will come to your house with a dull spoon and castrate you. If that isnt bad enough, im bringing govtcheez and -ken- with me.
Yikes, now that would be scary.
Who's that author that always gets the "not recommended" rating from that academic computing org? You know the one that comes out with like 5 books a year. I wonder if he uses void main()?
This statement is immediately followed by the example:Code:## You are therefore free to declare main() as required by your
## program.
void main (void)
even though the text of the standard directly opposite states that this is undefined. Indeed, the text I quote makes me wonder whether Schildt believes that:
struct foo { int i; double d; } main (double argc, struct foo argv)
is permitted !
Most of the examples in the book declare main() as void. I won't bother to point them out individually.
Obtained from:
http://www.lysator.liu.se/c/schildt.html
But later he states:
Indeed it is not. If main() is declared as void, I don't know of any compiler that will return 0. Indeed, the standard forbids it to !Code:## Though most compilers will automatically return 0 when no other
## return value is specified (even when main() is declared as
## void), you should not rely on this fact because it is not
## guaranteed by the standard.
Guys its easy, void main is NOT and NEVER WILL BE C++!!!! PERIOD!
So complex... :rolleyes:
I second that
:rolleyes: :rolleyes:
pick
c how to program
by deitel& deitel