Mail Archives: djgpp/1997/02/25/03:10:48
George Foot wrote:
> Zaphod Beeblebrox (zaphod AT evansville DOT net) wrote:
>
> : Why won't this compile? I get an unusual parser error at the first {.
> : How do I fix this?
>
> Delete the semicolon after the ) and put "int " before "main()".
The lack of a return type is okay in this case; function prototypes or
declarations default to return type int if not specified. It's unclear,
but it's perfectly legal ANSI C/draft standard C++ syntax.
You're right about the extraneous semicolon, of course.
--
Erik Max Francis, &tSftDotIotE / email: max AT alcyone DOT com
Alcyone Systems / web: http://www.alcyone.com/max/
San Jose, California, United States / icbm: 37 20 07 N 121 53 38 W
\
"I am become death, / destroyer of worlds."
/ J. Robert Oppenheimer (quoting legend)
- Raw text -