在结尾加上System("pause");试试
在编译时同时按ctrl键和F5键就可以了
开头#include结尾return 0;前加上System("pause");
加上system("pause");
system("pause");+1