#include "iostream" using namespace std; int main() cout << "Hello World" << endl; return 0; }每個程式都會有的第一個程式 Hello World ,一開始會從這個程式做開頭,其實就像是電話的發明一樣,反正就是想來個打招呼拉 XD 。
這個程式,就有很多觀念可以探討像是:預處理器、 namespace 的使用、間容性的探討...等等,主要是看使用者想要程式為你做哪些事情,而決定關注哪些事情而定。
所以我第一個程式的要求是:輸出一個 Hello World 到螢幕上來吧!!
參考:維基百科-C++ Wikipedia:Text of Creative Commons Attribution-ShareAlike 3.0 Unported License
沒有留言:
張貼留言