共用方式為


ostringstream

Creates a type basic_ostringstream specialized on a char template parameter.

typedef basic_ostringstream<char> ostringstream;

Remarks

The type is a synonym for template class basic_ostringstream, specialized for elements of type char*.*

Requirements

Header: <sstream>

Namespace: std

See Also

Reference

iostream Programming

iostreams Conventions