次の方法で共有


<sstream>

Defines several template classes that support iostreams operations on sequences stored in an allocated array object. Such sequences are easily converted to and from objects of template class basic_string.

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

#include <sstream>

Remarks

Objects of type char * can use the functionality in <strstream> for streaming. However, <strstream> is deprecated and the use of <sstream> is encouraged.

See Also

Concepts

<sstream> Members

Header Files

Thread Safety in the Standard C++ Library

iostream Programming

iostreams Conventions