delorie.com/archives/browse.cgi | search |
From: | Martin Bernreuther <Martin DOT Bernreuther AT po DOT uni-stuttgart DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Looking for <sstream> |
Date: | Thu, 27 Mar 1997 11:15:05 +0000 |
Organization: | University of Stuttgart |
Lines: | 36 |
Message-ID: | <333A56B9.441B@po.uni-stuttgart.de> |
Reply-To: | Martin DOT Bernreuther AT po DOT uni-stuttgart DOT de |
NNTP-Posting-Host: | iv-kib1.bauingenieure.uni-stuttgart.de |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hi, I'd like to use ostringstream like #include <sstream> void main { ostringstream os; double d=1.234; os << "d=" << d << endl; cout << os.str() << endl; } to convert numerical values like doubles to strings. (<string>) But I didn't find the include/header file <sstream> in the lang/cxx directory... Do I have to use the old ostrstream (char*) class in the <strstream> headerfile? Bye Martin ------------------------------------------------------------------------ Dipl.-Ing. Martin Bernreuther University of Stuttgart Pfaffenwaldring 7 Informationsverarbeitung im 70569 Stuttgart konstruktiven Ingenieurbau Germany E-Mail: Martin DOT Bernreuther AT po DOT uni-stuttgart DOT de http://www.uni-stuttgart.de/iv-kib/ ------------------------------------------------------------------------
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |