"not"、"and"和"or"是什么样的运营商C++
What kind of operator are "not", "and" and "or" in C++
'因为每当我尝试以下行之一时:
#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
相关文章:
- 呼叫运营商<<临时
- 两个运营商的一些奇怪的冲突<<
- 如何在 CPP 中访问家长的运营商
- 如何明确调用好友流运营商
- 私有运营商删除会触发 GCC 和 Clang 的编译时错误,但不会在 MSVC 上触发编译时错误
- 使用运营商New分配的数据结构是否有任何副作用
- "Inheriting"移动运营商?
- 朋友ostream&运营商<<无法访问私人会员
- 为什么在下面的代码返回类型中是用于运营商重载的类类型
- 范围的枚举(枚举类)关系运营商
- 为什么“操作员”需要const但不是为“运营商&lt;”
- 对这两个分配运营商之间的不同感到困惑
- 我的班级意外加法运营商
- OpenACC - C++"新"运营商问题
- c 对运营商的一致性是新的,有多少重要
- 为什么我不能使私人运营商成为新的并使用默认实现?
- 全球取代所有新运营商
- 包装C 朋友在Cython中的非会员运营商
- 合法的交换运营商的模板实施
- "not"、"and"和"or"是什么样的运营商C++