返回列表 發帖
  1. #include<iostream>     //引入 <基本輸入輸出> 標頭檔 input & output stream
  2. #include<cstdlib>      //引入 <標準函式庫> 標頭檔 c standard library
  3. using namespace std;   //指定命名空間為 std
  4. int main()    //主函式  //你要做的事
  5. {      
  6.     int a=50;
  7.   
  8.     cout<<"a原本是:"<<a<<endl;      
  9.     cout<<"請輸入數字:";
  10.     cin>>a;
  11.    
  12.     //cout輸出  endl換行
  13.     system("pause");       //讓畫面暫停
  14.     return 0;              //回傳0到主控台,告知該程式已成功執行
  15. }
複製代碼

TOP

返回列表