共用方式為


ofstream

A type basic_ofstream specialized on char template parameters.

typedef basic_ofstream<char, char_traits<char> > ofstream;

Remarks

The type is a synonym for template class basic_ofstream, specialized for elements of type char with default character traits.

Requirements

Header: <fstream>

Namespace: std

See Also

Reference

basic_ofstream Class

iostream Programming

iostreams Conventions