home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoftware Monthly 19…2 Programming Power Tools
/
MASO9512.ISO
/
cpptutor
/
cpptutor.arj
/
EXAMPLES
/
EX1120.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-10-27
|
291 b
|
13 lines
// \EXAMPLES\EX1120.CPP
#include <strstrea.h> // #include <strstream.h>
void main() {
char c;
char* buf_in = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
istrstream in_stream(buf_in); // declare input stream
while ( in_stream >> c ) {
cout << c << endl;
}
}