Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Defines several classes that support iostreams operations on sequences stored in an allocated array of char object. Such sequences are easily converted to and from C strings.

For a list of all members of this header, see <strstream> Members.

#include <strstream>

Objects of type strstream work with char *, which are C strings. Use <sstream> to work with objects of type basic_string.


The classes in <strstream> are deprecated. Consider using the classes in <sstream> instead.

© 2015 Microsoft