我用的是Qt4.6,用Qt Creator建了个空的工程,输入如下代码:
#include <iostream>
#include <cstdlib>
using namespace std;
int main(int argc, char* argv[])
{
cout << "hello, world!" << endl;
system("pause");
return 0;
}
成功编译后,运行时居然连"hello, world"都没有显示出来,只有“请按任意键继续……”,请问这是什么问题啊?
[ 此帖被huang_yj在2009-12-14 01:08重新编辑 ]