Sender: nate AT cartsys DOT com Message-ID: <36CF6F3B.D6396260@cartsys.com> Date: Sat, 20 Feb 1999 18:28:11 -0800 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Duh References: <36CCA146 DOT 8BCD8720 AT mail DOT globalserve DOT net> <7alvgv$25g$1 AT news7 DOT svr DOT pol DOT co DOT uk> <36CEADC5 DOT 7422E668 AT xyz DOT net> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com Bjørn Hansen wrote: > Michael Stefan wrote: > > > You tried to use the "\n" (newline) command from C instead of endl. It > > should look like this > > #include > > > > void main() > > { > > cout<<"Hello world" > return 0; > > } > > I havn't done a whole bunch of progremming in C++ so I was wondering why you > declared main as void and then have it return a value? Hee hee... Excellent. That's a bug and a very common one. It should, by all standards, be `int main'. -- Nate Eldredge nate AT cartsys DOT com