다음을 통해 공유


basic_ios::operator!

Indicates if the stream is not bad.

bool operator!( ) const;

반환 값

Returns fail.

예제

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

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

요구 사항

Header: <ios>

네임스페이스: std

참고 항목

참조

basic_ios 클래스

iostream 프로그래밍

iostreams 규칙