C++ 使用minGW的Netbeans不';编译时重新确认系统

C++ 使用minGW的Netbeans不';编译时重新确认系统,c++,netbeans,compiler-errors,mingw,C++,Netbeans,Compiler Errors,Mingw,我使用Windows上的MINW和MySeNeBeCes来编码C++。第一天我安装了所有东西,比如系统(“暂停”)可以正常工作。我今天去了我没有关掉的电脑,去了我已经做过的项目,试着再次运行它,它给了我这个 main.cpp: In function 'int main()': main.cpp:18:19: error: 'system' was not declared in this scope make[2]: *** [build/Debug/MinGW-Windows/main.

我使用Windows上的MINW和MySeNeBeCes来编码C++。第一天我安装了所有东西,比如
系统(“暂停”)可以正常工作。我今天去了我没有关掉的电脑,去了我已经做过的项目,试着再次运行它,它给了我这个

main.cpp: In function 'int main()':
main.cpp:18:19: error: 'system' was not declared in this scope  
make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 1  
make[2]: Leaving directory /c/Users/Grant/Documents/NetBeansProjects/CppApplication_1'
make[1]: *** [.build-conf] Error 2  
make: *** [.build-impl] Error 2  
make[1]: Leaving directory '/c/Users/Grant/Documents/NetBeansProjects/CppApplication_1'

我想不出有什么问题,这个代码在星期四到期。请提供帮助。

是netbeans编译代码所必需的。

否,谢谢。我不知道我需要它。如果你的问题解决了,请将你的解决方案作为答案发布并接受它()