问题:有的时候有的平台报错null was not declared in this scope 解决方案:在头文件添加如下代码即可 #ifndef NULL #define NULL 0 #endif