다음을 통해 공유


or

대신에 | | 연산자입니다.

#define or ||

설명

연산자 매크로 생성 |.

예제

// iso646_or.cpp
// compile with: /EHsc
#include <iostream>
#include <iso646.h>

int main( )
{
   using namespace std;
   bool a = true, b = false, result;

   boolalpha(cout);

   result= a || b;
   cout << result << endl;

   result= a or b;
   cout << result << endl;
}
  

요구 사항

헤더: <iso646.h>

네임 스페이스: std