目录

C++ Library - <iostream>

描述 (Description)

它用于标准输入/输出流库。

声明 (Declaration)

以下是iosstream功能的声明。

C++98

Including this header may automatically include other headers, such as <ios>,
   <streambuf>, <istream>, <ostream> and/or <iosfwd>.

C++11

Including <iostream> automatically includes also <ios>, <streambuf>, <istream>,
   <ostream> and <iosfwd>.

Objects

iosstream的对象应该是这样的 -

Narrow characters (char)

Sr.No. 人物 定义
1 cin 标准输入流
2 cout 标准输出流
3 cerr 错误的标准输出流
4 clog 用于记录的标准输出流

Wide characters (wchar_t)

Sr.No. 人物 定义
1 wcin 标准输入流(宽)
2 wcout SStandard输出流(宽)
3 wcerr 错误的标准输出流(面向广泛)
4 wclog 用于记录的标准输出流(宽)
↑回到顶部↑
WIKI教程 @2018