返回列表 發帖

第一支程式

本帖最後由 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. }
複製代碼

  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"快樂c++"<<endl;
  7.     system("pause")
  8.     return 0;
  9. }
複製代碼

TOP

  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"快樂c++"<<endl;
  7.     system ("pause");
  8.     return 0;
  9. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    cout<<"快樂c++"<<endl;
  7.    system("pause");
  8.    return 0;
  9. }
複製代碼

TOP

  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    cout<<"快樂c++"<<endl;
  7.     system("pause");
  8.        return 0;
  9.        }
複製代碼

TOP

  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {                        
  6.    cout<<"                             0000000000000      "<<endl;
  7.    cout<<"           vagfgghd          0快樂C++    0      "<<endl;
  8.    cout<<"      asdfa        asdfa     0000000000000      "<<endl;
  9.    cout<<"           vagfgghd         1      1            "<<endl;
  10.    cout<<"          1vagfgghd1       1       1            "<<endl;
  11.    cout<<"         1 vagfgghd 1     1        1            "<<endl;
  12.    cout<<"        1  vagfgghd  1   1         1            "<<endl;
  13.    cout<<"       1   vagfgghd   1 1          1            "<<endl;
  14.    cout<<"      1    vagfgghd    1           1            "<<endl;
  15.    cout<<"      1    vagfgghd                1            "<<endl;
  16.    cout<<"      1     1    1                              "<<endl;
  17.    cout<<"      1     1    1                              "<<endl;
  18.    cout<<"      1     1    1                              "<<endl;
  19.    cout<<"      1     1    1                              "<<endl;
  20.    cout<<"            1    1                              "<<endl;   
  21.     system("pause");
  22.        return 0;
  23. }
複製代碼
http://fs-old.mis.kuas.edu.tw/~s1102137106/music/

TOP

返回列表