为什么有时我编程序用宏定义NULL会出错
c语言吧
全部回复
仅看楼主
level 6
来了就不回去
楼主
#define NULL 0
2008年06月26日 10点06分
1
level 7
CIW_BLUE
代码呢
2008年06月26日 10点06分
3
level 9
MasterRay
C++ 往往定义为 0C 往往定义为 ((void *)0)
2008年06月26日 10点06分
4
level 1
seti2012
那当然啦,你看错误提示就知道:redefine NULL所以,NULL直接用就行了,不用定义,把#define NULL 0 删了就行了
2008年06月26日 11点06分
5
level 0
58.47.143.*
头文件 stdio.h已经包含此宏
2008年06月26日 11点06分
6
1