返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"hello"<<endl;
  7.     system("pause");
  8.     return 0;
  9. }  
複製代碼

TOP

  1. #include <iostream>   //引入標頭檔 <in & out stream> , 基本輸入輸出
  2. #include <cstdlib>    // 引入標頭檔 <c standard library> , 標準函式庫
  3. using namespace std;  //指定命名空間
  4. int main()            //主函式
  5. {
  6.     cout<<"hello"<< endl;
  7.     system("pause");  //畫面暫停
  8.     return 0;         //回傳 0 至主控台 , 告知程式已成功執行並結束
  9. }
複製代碼

TOP

返回列表