文件名称:12.3
介绍说明--下载内容来自于网络,使用问题请自行百度
与C++输入流一样,输出流也可以使用输出流类的成员函数来实现数据输出。因此,在本小节中,将向用户介绍这些函数的原型及其使用方法等。
通常情况下,用户可以使用C++输出流类中的成员函数“put”将指定的数据放入到计算机输出流中,进行显示。该成员函数的原型如下所示:
01 basic_ostream& put(E c) //输出流类的成员函数原型
在成员函数“put”中,该函数的作用是将用户指定的数据放入到计算机的输出流中。该成员函数含有一个参数,即单字符类型。 -And C++ input stream, output stream can also use the output stream class member function to the data output. Therefore, in this section, the user will introduce the prototype of these functions and their use.
Under normal circumstances, the user can use the member functions in C++ output stream class "put" to the specified data into the computer output stream to be displayed. The member function prototype is as follows:
01 basic_ostream & put (E c) // output stream class member function prototypes
The member function "put", the function is user-specified data into the output stream of the computer. The member function contains a parameter that is a single character type.
通常情况下,用户可以使用C++输出流类中的成员函数“put”将指定的数据放入到计算机输出流中,进行显示。该成员函数的原型如下所示:
01 basic_ostream& put(E c) //输出流类的成员函数原型
在成员函数“put”中,该函数的作用是将用户指定的数据放入到计算机的输出流中。该成员函数含有一个参数,即单字符类型。 -And C++ input stream, output stream can also use the output stream class member function to the data output. Therefore, in this section, the user will introduce the prototype of these functions and their use.
Under normal circumstances, the user can use the member functions in C++ output stream class "put" to the specified data into the computer output stream to be displayed. The member function prototype is as follows:
01 basic_ostream & put (E c) // output stream class member function prototypes
The member function "put", the function is user-specified data into the output stream of the computer. The member function contains a parameter that is a single character type.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
12.3.cpp
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
