你加一个头文件
#include<iostream>
再加一个
system("pause");
代码不规范
#include<stdio.h> int main() { //此处写printf... return 0; }
代码写成这样也能跑,刷新了我的认知...