诡异的错误,宏定义函数
- C/C++ code
#include<stdlib.h>#include<stdio.h>#include <process.h>#define errlog(n) printf(#n)#define mymax(a,b) printf(#a#b)int main(){ mymax(1,2); errlog(1); system("pause"); return 0;}
错误error C3861: “errlog”: 找不到标识符
[解决办法]
我用VC6没问题,你说下你的编译器吧。