2016-04-26 4 views
0

「原因で、私はこれらの行のいずれかを試してくださいたび:どのような演算子の「ない」であり、「かつ」と「または」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++ 
+1

http://stackoverflow.com/questions/2419805/when-did-and-become-an-operator-in-c – FCo

+0

なぜ...それらを定義したいと思いますか?なぜコードを読むことができないのですか? –

+1

読み取り不可?いい加減にして。 – user6245072

答えて

関連する問題