basic_ostream::put
Puts a character in a stream.
basic_ostream<_Elem, _Tr>& put(
char_type _Ch
);
매개 변수
- _Ch
문자입니다.
반환 값
A reference to the basic_ostream object.
설명
The unformatted output function inserts the element _Ch. It returns *this.
예제
// basic_ostream_put.cpp
// compile with: /EHsc
#include <iostream>
int main( )
{
using namespace std;
cout.put( 'v' );
cout << endl;
wcout.put( L'l' );
}
요구 사항
Header: <ostream>
네임스페이스: std