15 lines
350 B
C++
15 lines
350 B
C++
#include <strstrea.h>
|
|
|
|
void main( void ) {
|
|
|
|
char *pch = "Open Watcom C++", s[20];
|
|
|
|
istrstream input ( pch );
|
|
input >> s;
|
|
cout << "The first string in the istrstream object is \""
|
|
<< s << "\"" << endl;
|
|
input >> s;
|
|
cout << "The second string in the istrstream object is \""
|
|
<< s << "\"" << endl;
|
|
}
|