程序框架有问题,return 0;之前要写个system("pause");
以下是C++的基础框架 #include<iostream> using namespace std; int main() { system("pause"); return 0; }
另外你附上的代码是想打印1这个数字的话1要用引号引起来,这样应该就可以输出啦~