From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: Converting numbers to strings Date: Mon, 10 May 1999 17:08:28 -0400 Organization: BrunNet Lines: 30 Message-ID: <37374ACB.BA48C9DF@unb.ca> References: <0jzu8AArMaN3EwpJ AT dunvegan1 DOT demon DOT co DOT uk> NNTP-Posting-Host: ftnts3c30.brunnet.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.51 [en] (Win95; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com bowman wrote: > > How do I do that in C++? > > #include > #include > #include > > int main() { > > ostrstream ostr; > for (int i=0; i<20; i++) { > ostr << "pic" << setfill('0') << setw(3) << i << ".bmp" << ends; > cout << "filename = " << ostr.str() << endl; > ostr.seekp(0); > } > return 0; > } What is the "seekp" there for? -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT HotMail DOT com ICQ: 32959047