为什么NULL有时可以赋值给指针,有时不可以? 与头文件中的宏定义有关
include<afx>
#define NULL 0 //这时NULL不能给指针变量赋值
//////////////////////////////////
include<crtdbg>
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void *)0) //这时NULL可以给指针变量赋值
#endif
#endif