次の方法で共有


<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

Reference

Thread Safety in the Standard C++ Library

iostream Programming

iostreams Conventions

Other Resources

<strstream> Members

Header Files