K
Kwan Ting
The_Sage, I see you've gotten yourself a twin asking for program in
comp.lang.c++ .
http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=45cd1b289c71c33c&rnum=1
If you the oh so mighty programmer that you pretend to be, why don't you
just write some? (And oh, void main is still not allow by the C++ standard.)
Seeming as how you tried to quote the standard in an attempt to pretend
you're right, I'll quote the standard to once and for all destory all your
arguements.
C++ standard 3.6.1 Main function
Paragraph 5
"A return statement in main has the effect of leaving the main function
(destroying any objects with automatic storage duration) and calling exit
with the return value as the argument. If control reaches the end of main
without encountering a return statement, the effect is that of executing
return 0;"
Now, not even an idiot like you can argue with what it says here. Either an
return value have been specificed, or the main function return 0 by default.
Could you please tell everyone in your (imaginary) infinte wisdom how main
can be of type void if it return a value?
(Oh btw, that paragraph from the standard is only 3 paragraphs down (on the
same page) from what you quoted, if only you had learn how to read
properly.....)
Kwan Ting
comp.lang.c++ .
http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=45cd1b289c71c33c&rnum=1
If you the oh so mighty programmer that you pretend to be, why don't you
just write some? (And oh, void main is still not allow by the C++ standard.)
Seeming as how you tried to quote the standard in an attempt to pretend
you're right, I'll quote the standard to once and for all destory all your
arguements.
C++ standard 3.6.1 Main function
Paragraph 5
"A return statement in main has the effect of leaving the main function
(destroying any objects with automatic storage duration) and calling exit
with the return value as the argument. If control reaches the end of main
without encountering a return statement, the effect is that of executing
return 0;"
Now, not even an idiot like you can argue with what it says here. Either an
return value have been specificed, or the main function return 0 by default.
Could you please tell everyone in your (imaginary) infinte wisdom how main
can be of type void if it return a value?
(Oh btw, that paragraph from the standard is only 3 paragraphs down (on the
same page) from what you quoted, if only you had learn how to read
properly.....)
Kwan Ting