From: Erik Max Francis Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Subject: Re: CIN COUT Date: Mon, 10 Mar 1997 20:40:25 -0800 Organization: Alcyone Systems Lines: 17 Message-ID: <3324E239.4366EE39@alcyone.com> References: <331BC0D5 DOT 5CB AT aracnet DOT com> <5fjr8r$3ko AT whitbeck DOT ncl 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 Dazzling Dazz wrote: > wouldn't you have to declare main as a void or int? Like this: main should always be declared as returning int; returning anything else is not ANSI complaint. And he did that. Omitting the return type of a function defaults to int. He just didn't return a value. -- 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)