"not"、"and"和"or"是什么样的运营商C++

What kind of operator are "not", "and" and "or" in C++

本文关键字:什么样 运营商 C++ or not and      更新时间:2023-10-16

'因为每当我尝试以下行之一时:

#define and &&
#define or ||
#define not !

我收到错误:

1:9: error: "not"/"and"/"or" cannot be used as a macro name as it is an operator in C++

这些关键字已经定义。请看一看 http://en.cppreference.com/w/cpp/language/operator_alternative