返回列表 發帖

第一支程式

本帖最後由 tonyh 於 2014-8-16 10:50 編輯

在執行窗格中顯示 "快樂C++" 字樣
  1. #include<iostream>      //input & output
  2. #include<cstdlib>       //standard liburary
  3. using namespace std;
  4. int main()      //主函式
  5. {
  6.     cout<<"快樂C++ "<<endl;
  7.     system("pause");
  8.     return 0;    //回傳0 告訴電腦本程式已成功結束
  9. }
複製代碼

返回列表