delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/11/17:47:36

From: "Colin W. Glenn" <cwg01 AT gnofn DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: "HELLO WORLD!" C++ Programming Error with Djgpp?
Date: Sun, 9 Feb 1997 12:37:10 -0600
Organization: Greater New Orleans Free-Net
Lines: 17
Message-ID: <Pine.GSO.3.95.970209123415.29211C-100000@sparkie.gnofn.org>
References: <32f55207 DOT 1140784 AT news DOT akula DOT com> <5dejs8$29l AT isis DOT fiu DOT edu> <32FCF752 DOT 5B08 AT cs DOT com>
NNTP-Posting-Host: sparkie.gnofn.org
Mime-Version: 1.0
In-Reply-To: <32FCF752.5B08@cs.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Sat, 8 Feb 1997, John M. Aldrich wrote:

> > : void main()
> void main() is an illegal construct under C++.  main() MUST return an
> integer.  Period.  The compiler should give you a warning about this if
> you compile with '-Wall'.  It's also extremely bad practice in C.

Never thought about that, every program under DOS always returns an code,
even if it's a 0.  And in a like vein, they also recieve arguments, even
if they might be NULL.

<! PrePared HTML!  Just export as a HTML file and Click!>
The Light<a href="http://www.thelight.org/">.</a>
A Christian Web Site! 
<a href="http://www.hspro.com/hotspot/">HotSpot</a>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019