delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/10/04:13:02

From: "AndrewJ" <luminous-is AT home DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <qh1S4.1$o61 DOT 220 AT news DOT uswest DOT net>
Subject: Re: cout on Win98
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <4Z8S4.15074$55.286538@news2.rdc1.on.home.com>
Date: Wed, 10 May 2000 08:20:16 GMT
NNTP-Posting-Host: 24.42.120.18
X-Complaints-To: abuse AT home DOT net
X-Trace: news2.rdc1.on.home.com 957946816 24.42.120.18 (Wed, 10 May 2000 01:20:16 PDT)
NNTP-Posting-Date: Wed, 10 May 2000 01:20:16 PDT
Organization: @Home Network Canada
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Since Alexey alread answered your question, I won't bother with that, but...
for future reference:

[snip]

> #include <iostream.h>
>
> main()
> {
>   cout<<"Hello World.\n";
> }

main should be declared as either int main(void) or int main(int argc, char
*argv[]) (or **argv).  Learn it now... ;)

AndrewJ


- Raw text -


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