From: Martin Bernreuther Newsgroups: comp.os.msdos.djgpp Subject: Looking for 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 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 Hi, I'd like to use ostringstream like #include void main { ostringstream os; double d=1.234; os << "d=" << d << endl; cout << os.str() << endl; } to convert numerical values like doubles to strings. () But I didn't find the include/header file in the lang/cxx directory... Do I have to use the old ostrstream (char*) class in the 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/ ------------------------------------------------------------------------