首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

诡异的异常,宏定义函数

2014-06-30 
诡异的错误,宏定义函数C/C++ code#include#include#include #define errlo

诡异的错误,宏定义函数

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没问题,你说下你的编译器吧。

热点排行