C++运行界面一闪而过解决

#include<iostream>
#include <stdlib.h>  #切记导入这个头文件
using namespace std;
 
int main() {
cout << "Hello Word"<<endl;
system("pause");  #让界面不是一闪而过
return 0;
}

注意:VS2012以上版本才支持C++ 11新特性

猜你喜欢

转载自blog.csdn.net/weixin_38383877/article/details/83047890