在流将字符。
basic_ostream<_Elem, _Tr>& put(
char_type _Ch
);
参数
- _Ch
一个字符。
返回值
为 basic_ostream 对象的引用。
备注
无格式的输出功能插入元素 _Ch。 它将返回 *this。
示例
// basic_ostream_put.cpp
// compile with: /EHsc
#include <iostream>
int main( )
{
using namespace std;
cout.put( 'v' );
cout << endl;
wcout.put( L'l' );
}
要求
页眉: <ostream>
命名空间: std