delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/03/24/10:01:25

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Harry J. Smith" <hjsmithh AT sbcglobal DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <3WBUf.4318$tN3 DOT 1538 AT newssvr27 DOT news DOT prodigy DOT net> <dvuqlp$gtf$1 AT mailhub227 DOT itcs DOT purdue DOT edu>
Subject: Re: I cannot compile the simplest program
Lines: 32
Organization: Self-employed
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
Message-ID: <OITUf.41723$_S7.13868@newssvr14.news.prodigy.com>
NNTP-Posting-Host: 69.224.17.181
X-Complaints-To: abuse AT prodigy DOT net
X-Trace: newssvr14.news.prodigy.com 1143211950 ST000 69.224.17.181 (Fri, 24 Mar 2006 09:52:30 EST)
NNTP-Posting-Date: Fri, 24 Mar 2006 09:52:30 EST
X-UserInfo1: [[PAPDCAO AT TGR_\XGBNTORTDFZ\@@FXLM AT TDOCQDJ@_ AT FNHB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U AT FRFUEXR@KFXYDBPWBCDQJA AT X_DCBHXR[C@\EOKCJLED_SZ AT RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN
Date: Fri, 24 Mar 2006 14:52:30 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Daniel Verkamp" <dverkamp AT purdue DOT edu> wrote in message 
news:dvuqlp$gtf$1 AT mailhub227 DOT itcs DOT purdue DOT edu...
> Harry J.Smith wrote:
>>
>> I installed djgpp but I cannot compile the simplest program:
>>
>> #include <stdio.h>
>> int main(void)
>> {
>>  cout << "Hello World\n";
>>  return 0;
>> }
>
> You need to include the correct header:
>
> #include <iostream>
> using namespace std;
> int main(void)
> {
>  cout << "Hello World\n";
>  return 0;
> }
>
> -- Daniel Verkamp <dverkamp AT purdue DOT edu>


Thanks to all that helped. The program works now.

I got an MS in mathematics from Purdue University in 1956.

-Harry  http://www.geocities.com/hjsmithh/

- Raw text -


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