我写了一些非常简单的代码,因为我刚刚启动C++,并且希望在我们的二叉树分配之前用语法和编译器加热。如何使用Visual C++ 2008查看我的代码的输出?
#include <iostream>
using namespace std;
int main(){
cout << "Hello";
return 0;
}
我收到的唯一的输出是:
1> Build started: Project: First-BinaryTree, Configuration: Debug Win32 ------
1>Compiling...
1>First-BinaryTree.cpp
1>Build log was saved at "file://c:\Users\Administrator\Documents\Visual Studio 2008\Projects\First-BinaryTree\First-BinaryTree\Debug\BuildLog.htm"
1>First-BinaryTree - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
因为它似乎运行正常,但我看不出你好输出的任何地方。
伟大的基本问题。这是第一次使用IDE来运行C或C++程序的人员。 ...和“家庭作业”标签的诚实使用非常感谢。祝你的b-tree作业好运! – 2010-02-13 22:13:36