This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/cplbexam/ios/pword.cpp

18 lines
471 B
C++

#include <iostream.h>
#include <strstream.h>
void main( void ) {
int index1 , index2;
char s[10];
istrstream greet ( "Hello," );
index1 = greet.xalloc();
greet.pword( index1 ) = " Open Watcom C compiler users";
index2 = greet.xalloc();
greet.pword( index2 ) = " Open Watcom C++ compiler users";
greet >> s;
cout << s << (char *)greet.pword( index1 ) << endl;
cout << s << (char *)greet.pword( index2 ) << endl;
}