and_eq
為 &=運算子的其中一個選項。
#define and_eq &=
備註
巨集產生&=運算子。
範例
// iso646_and_eq.cpp
// compile with: /EHsc
#include <iostream>
#include <iso646.h>
int main( )
{
using namespace std;
int a = 3, b = 2, result;
result= a &= b;
cout << result << endl;
result= a and_eq b;
cout << result << endl;
}
需求
標題: <iso646.h>
命名空間: std