basic_ios::operator!

指示流不是错误的。

bool operator!( ) const;

返回值

返回 失败

示例

// basic_ios_opbad.cpp
// compile with: /EHsc
#include <iostream>

int main( ) 
{
   using namespace std;
   cout << !cout << endl;   // Stream is not bad 
}
0

要求

页眉: <ios>

命名空间: std

请参见

参考

basic_ios 类

iostream 编程

iostreams 约定