编写的“hello world”, C++程序一直闪退,把main函数中的return 0;删掉后程序就能正常显示了,这是什么原因?
加一句system("pause");
可以试一下这个: http://blog.csdn.net/FunkyDou4/article/details/52292545
#include <stdio.h> getchar(); system("pause");