From: "A. Sinan Unur" 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: Reply-To: asu1 AT cornell DOT edu NNTP-Posting-Host: cu-dialup-0060.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk in reply to Courtney Duncan: you either have an installation problem, or using a broken version or something like that. given: #include 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 -- 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. *******************************************************************