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

TOP

返回列表