delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/29/02:16:12

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: cout << (double), more info
Date: Mon, 28 Apr 1997 15:14:20 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 41
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <3364F70C.7C71@cornell.edu>
References: <n1349898145 DOT 92491 AT jpl-335-server DOT jpl DOT nasa DOT gov>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0060.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

in reply  to Courtney Duncan:

you either have an installation problem, or using a broken version or
something like that. given:

#include <iostream.h>

int main()
{
    cout << 4.5 << endl;
    cout << (double) 4 << endl;
    return 0;
}

call this td.cc. gxx td.cc -o td.exe produce the excutable td.exe which
when run displays:

D:\djgpp\C> td
4.5
4

so, please make sure you are including iostream.h and that your
installation is not broken. an earlier post of yours suggested you were
using an ancient version of gcc, i would go ahead and upgrade to djgpp
v.2.01. after all, i hope you are on on a 14.4 modem like me at nasa<g>





-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 

Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************

- Raw text -


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