共用方式為


<strstream>

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>

Remarks

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.

See Also

Concepts

<strstream> Members

Header Files

Thread Safety in the Standard C++ Library

iostream Programming

iostreams Conventions