【发布时间】:2015-12-01 15:14:47
【问题描述】:
#include <iostream>
using namespace std;
# define p 5+3
int main() {
//code
int i=p*p;
cout<<i;
return 0;
}
预期输出:64 实际产量:23 怎么样?? 没看懂
【问题讨论】:
-
欢迎来到 SO!请指定您获得的输出而不是预期的输出。
-
非常好的示例,说明为什么您不应该使用宏,尤其是在必要时不使用括号时。
标签: c++