Visual C++ 2010 Express 如何查看输出?

2025-02-21 18:24:36
推荐回答(3个)
回答1:

把上面的代码编译通过之后,按Ctrl+F5,前面的那些人的方法虽然也行,但我从来就不那么做,因为根本就没必要。你直接按F5是以调试方式运行,而按Ctrl+F5不是按调试方式运行的。

回答2:

#include "stdafx.h"
#include
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout<<"abcdefg"< system("pause");
return 0;
}

回答3:

#include "stdafx.h"
#include
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout<<"abcdefg"< char a=getchar();
}