我寫了一些非常簡單的代碼,因爲我剛剛啓動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