在程序的最后加个getchar() ,这样程序运行到这里就会停止,等待用户输入,你就能看到程序运行的结果了
可以按ctrl+f9或者在程序的最后加上getch()或是getchar()
网上搜吧 我原来找过!