linux 编译错误

来源:互联网 发布:淘宝补差价怎么弄 编辑:程序博客网 时间:2024/05/21 22:29

1. error: ‘NULL’ was not declared in this scope

解决方法:包含头文件<iostream>即可,因为<iostream>定义了NULL

2.‘nullptr’ was not declared in this scope

解决方法:#define nullptr NULL

0 0