Mail Archives: djgpp/1997/06/29/20:14:23
It's not wrong, try=AB to look=AB at any=AB allegro example
:)
Bye
Guilherme
>
>Guilherme Silveira wrote:
>>=20
>> Why=AB is it incorrect?
>
>main() must return an integer according to the ANSI C specification.=20
>Doing anything else is an ANSI violation and may result in undefined
>behavior. In C++ the compiler will automatically convert the return
>value to int and give you a warning.
>
>References: comp.lang.c Frequently Asked Questions
>(http://www.eskimo.com/~scs/C-faq/top.html), questions 11.12 through
>11.16.
>ANSI Sec. 2.1.2.2.1, Sec. F.5.1=20
>ISO Sec. 5.1.2.2.1, Sec. G.5.1=20
>H&S Sec. 20.1 p. 416=20
>CT&P Sec. 3.10 pp. 50-51=20
>
>Enough?
>
>> At 19:41 29/06/1997 +0000, you wrote:
>> >Guilherme Silveira wrote:
>> >>
>> >> The function Main should receive two parameters:
>> >> void main(int argc, char * argv[]){
>> >
>> >int main( int argc, char *argv[] ) {
>> >
>> >Please don't post incorrect examples.
>
>--=20
>---------------------------------------------------------------------
>| John M. Aldrich | "Money is truthful. If a man speaks |
>| aka Fighteer I | of his honor, make him pay cash." |
>| mailto:fighteer AT cs DOT com | |
>| http://www.cs.com/fighteer | - Lazarus Long |
>---------------------------------------------------------------------
>
---------------------------------------------------------------
<underline>Guilherme Silveira - Sao Paulo - Brasil
</underline><italic> 18/09/1981 - Until Today...
</italic>carlos AT usway DOT com - thedarkage AT mail DOT geocities DOT com
What about taking a look on my page:
http://www.geocities.com/SiliconValley/Way/5441/
DJGPP - Visual Basic - C/C++ - Xcom - Warcraft II
THE DARK AGE
- Raw text -