[問題] 關於名稱空間
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) 無
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 無
問題(Question):
面試時遇到的考題, 只大概打出題意
答案有三個, 想不出最後一個
餵入的資料(Input):無
預期的正確結果(Expected Output):
我填的答案有兩個
1. 第2行加入 using namespace std;
2. 第5行改成 std::cout << "hello world!" << std::endl;
錯誤結果(Wrong Output):無
程式碼(Code):(請善用置底文網頁, 記得排版)
1 #include <iostream>
2
3 int main()
4 {
5 cout << "hello world!" << endl;
6 return 0;
7 }
補充說明(Supplement):無
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.165.200.161
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1430317168.A.1ED.html
※ 編輯: zelkova (118.165.200.161), 04/29/2015 22:20:12
→
04/29 22:27, , 1F
04/29 22:27, 1F
→
04/29 22:54, , 2F
04/29 22:54, 2F
→
04/29 22:58, , 3F
04/29 22:58, 3F
→
04/30 00:12, , 4F
04/30 00:12, 4F
推
04/30 09:03, , 5F
04/30 09:03, 5F
→
04/30 19:39, , 6F
04/30 19:39, 6F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章