C++头文件<iostream>包含哪些系统方法

2024-12-30 12:25:51
推荐回答(3个)
回答1:

Header synopsis
namespace std {
extern istream cin;
extern ostream cout;
extern ostream cerr;
extern ostream clog;
extern wistream wcin;
extern wostream wcout;
extern wostream wcerr;
extern wostream wclog;
}
1 The header declares objects that associate objects with the standard C streams provided for
by the functions declared in (27.8.2).
2 Mixing operations on corresponding wide- and narrow-character streams follows the same semantics as
mixing such operations on FILEs, as specified in Amendment 1 of the ISO C standard. The objects are
constructed, and the associations are established at some time prior to or during first time an object of class
ios_base::Init is constructed, and in any case before the body of main begins execution.264) The
objects are not destroyed during program execution.265)

回答2:

一些标准的输入输出类
cin
cout
........

回答3:

去MSDN吧