1. error: ‘NULL’ was not declared in this scope
解决方法:包含头文件<iostream>即可,因为<iostream>定义了NULL
2.‘nullptr’ was not declared in this scope
解决方法:#define nullptr NULL
1. error: ‘NULL’ was not declared in this scope
解决方法:包含头文件<iostream>即可,因为<iostream>定义了NULL
2.‘nullptr’ was not declared in this scope
解决方法:#define nullptr NULL