Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI729.ASC

 
Output of file : TI729.ASC contained in archive : C-ALL.ZIP







PRODUCT : Borland C++ NUMBER : 729
VERSION : 2.0
OS : DOS
DATE : September 18, 1991 PAGE : 1/1

TITLE : How to Use strstream











/*********************************************************

Example code for using strstream

*********************************************************/

#include // the old C i/o stuff
#include // C++ streams
#include

char line[100]; // a buffer for lines of input

void main(void)
{
ostrstream mystream(line, 100); // associate line[] with a
stream
mystream << "testing"; // insertion to mystream
printf("%s\n", line); // output using old C style
cout << line; // output using C++ style
}
























  3 Responses to “Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI729.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/