From owner-freebsd-chat Fri Mar 1 02:36:17 1996 Return-Path: owner-chat Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA03044 for chat-outgoing; Fri, 1 Mar 1996 02:36:17 -0800 (PST) Received: from toadflax.cs.ucdavis.edu (toadflax.cs.ucdavis.edu [128.120.56.188]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id CAA03036 for ; Fri, 1 Mar 1996 02:36:12 -0800 (PST) Received: by toadflax.cs.ucdavis.edu (4.1/UCD.CS.2.6) id AA28992; Fri, 1 Mar 96 02:36:10 PST From: obrien@cs.ucdavis.edu (David E. O'Brien) Message-Id: <9603011036.AA28992@toadflax.cs.ucdavis.edu> Subject: Re: your mail To: chat@freebsd.org Date: Fri, 1 Mar 1996 02:36:08 -0800 (PST) In-Reply-To: <199602292219.PAA21761@seagull.rtd.com> from "Tony Jones" at Feb 29, 96 03:19:10 pm X-Mailer: ELM [version 2.4 PL24 ME8b] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-chat@freebsd.org Precedence: bulk > >void main( int argc, char *argv[] ) > > { > > int i = 0, > > p = 1; > > > > for ( int l = 10; l; l-- ) > > { > > i += p + l; > > p++; > > } > > } > > Apart from the fact that this makes me want to reach for the nearest bucket, > I think someone has been spending a little too much time coding in C++ :-) Can't be... main() ain't void in C++. Shall we discusss the virutues of "void main()"??? Anybody seen the comp.lang.c T-shirts with the slash through "void main()"? -- David (obrien@cs.ucdavis.edu)