| delorie.com/archives/browse.cgi | search |
| Message-ID: | <36CEADC5.7422E668@xyz.net> |
| From: | =?iso-8859-1?Q?Bj=F8rn?= Hansen <viking AT xyz DOT net> |
| X-Mailer: | Mozilla 4.5 [en] (Win95; I) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| Newsgroups: | comp.os.msdos.djgpp |
| 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> |
| Lines: | 24 |
| NNTP-Posting-Host: | 207.14.89.157 |
| X-Trace: | news7.ispnews.com 919547025 207.14.89.157 (Sat, 20 Feb 1999 16:43:45 EDT) |
| NNTP-Posting-Date: | Sat, 20 Feb 1999 16:43:45 EDT |
| Date: | Sat, 20 Feb 1999 12:42:46 +0000 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
It should work either way though, at least this code works just fine
fore me:
#include <iostream.h>
main ()
{
cout<<"hey hey\n";
}
Michael Stefan wrote:
> You tried to use the "\n" (newline) command from C instead of endl. It
> should look like this
> #include <iostream.h>
>
> void main()
> {
> cout<<"Hello world"<endl;
> 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?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |