delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/25/07:27:53

From: Alexey Zakhlestine <alx AT gs707 DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Newbie questions with iostream.h and RHIDE
Date: Tue, 25 Jan 2000 09:54:11 +0300
Organization: MTU-Intel ISP
Lines: 32
Message-ID: <388D4892.C6672834@gs707.com>
References: <s8qffd3seh685 AT corp DOT supernews DOT com>
NNTP-Posting-Host: dial53145.mtu-net.ru
Mime-Version: 1.0
X-Trace: gavrilo.mtu.ru 948783303 88635 195.34.53.145 (25 Jan 2000 06:55:03 GMT)
X-Complaints-To: usenet-abuse AT mtu DOT ru
NNTP-Posting-Date: 25 Jan 2000 06:55:03 GMT
X-Mailer: Mozilla 4.7 [en] (Win95; I)
X-Accept-Language: ru
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

The following program should work fine:

----------------
#include <iostream>

int main(void)
{
    cout << "Hello World!" << endl;
}
---------------
But! You should compile it using "gxx", instead of "gcc"!



"William J. Urban II" wrote:

> Well, I think my eyes are sore from trying to read all the information out
> there on this stuff.  I am currently enrolled in a C++ class so I am using
> Borland C++ 3.0 and am teaching myself DJGPP along with it.  I wrote the
> custumary "Hello World" but couldnt use
> #include <iostream.h>  to use cout<<"Hello World"<<endl;  But if I used
> <stdio.h> with a
> printf("Hello World"); it worked fine.  I then tried to just copy my
> iostream from borland but I still couldnt use cout.  Any suggestions or am I
> stuck with printf?  Also, I was able to start rhide in a dos window but when
> I tried double clicking on it in windows it brought up something about
> visual c++ and whether or not it was a make file.  I just got out of it not
> wanting to ruin my files.  Can this be run in windows?  Thanks in advance
> for any information you can provide.
>
> -Will

- Raw text -


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