CIS 29 - Notes for 10/8

Announcements

Topic - the stringstream classes

Note: the strstream classes, istrstream, ostrstream, and strstream have been deprecated.

We will be using the following internet references in our discussion of the stringstream classes. Examples will be presented on the board

Lab Exercise 6

Write a program in which you parse a long char array into strings. Print each string on a separate line. Do not use any <cstring> functions. Use <sstream> objects and functions and string functions only. Assume the char array is:

The quick brown fox jumped over the lazy poodle.

Make sure you handle the period at the end of the text.

Output:

The
quick
brown
fox
jumped
over
the
lazy
poodle

Turn in or email your code and your program output.