From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: QUESTION: General Syntax Date: Mon, 24 Feb 1997 21:42:17 -0800 Organization: Alcyone Systems Lines: 22 Message-ID: <33127BB9.18332849@alcyone.com> References: <5etfkd$pj2 AT news DOT ox DOT ac DOT uk> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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)