Board logo

標題: 基本輸入輸出 (一) [打印本頁]

作者: 陳品肇    時間: 2018-7-9 10:40     標題: 基本輸入輸出 (一)

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"請輸入一整數: ";
  8.     cin>>a;
  9.     cout<<"你剛輸入的數是: "<<a<<endl;
  10.     system("pause");
  11.     return 0;
  12. }
複製代碼

作者: 曲書辰    時間: 2018-7-9 14:40

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.   int a;
  7.   cout<<"請輸入一個整數"<<endl;
  8.   cin>>a
  9.   cout<<"你輸入的是"<<a<<endl;


  10.   system("pause");
  11.   return 0;      
  12. }
複製代碼

作者: 吳柏佑    時間: 2018-7-9 14:40

本帖最後由 吳柏佑 於 2018-7-9 14:53 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"請輸入一整數:";
  8.     cin>>a;
  9.     cout<<"您輸入的數是"<<a<<endl;
  10.     system("pause");
  11.     return 0;
  12. }
複製代碼

作者: 古蕾娜    時間: 2018-7-9 14:41

  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"please enter a whole number:";
  8.     cin>>a;
  9.     cout<<"the number you entered is "<<a<<endl;
  10.     system("pause");
  11.     return 0;
  12. }
複製代碼

作者: 王立勝    時間: 2018-7-9 14:42

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"請輸入一個整數:";
  8.     cin>>a;
  9.     cout<<"你輸入的整數:"<<a<<endl;
  10.      
  11.     system("pause");
  12.     return 0;
  13.    
  14. }
複製代碼

作者: 郭子揚    時間: 2018-7-9 14:42

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"請輸入一整數:";
  8.     cin>>a;
  9.     cout<<"您輸入的數字是"<<a<<endl;
  10.    
  11.     system("pause");
  12.     return 0;
  13. }   
複製代碼

作者: 王立恩    時間: 2018-7-9 14:43

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int  a;
  7.   cout<<"請輸入一整數:";
  8. cin>>a;
  9. cout<<"您輸入的數字是"<<a<<endl;
  10.    system("pause");
  11.    return 0;
  12. }   

  13.    
複製代碼

作者: 許家華    時間: 2018-7-9 14:43

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int    n;
  7.     cout<<"請輸入一個整數";
  8.     cin>>n;
  9.     cout<<"您輸入的數字是"<<n<<endl;
  10.    
  11.     system("pause");
  12.     return 0;
  13. }
複製代碼

作者: 游芸溱    時間: 2018-7-9 14:44

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"請輸入一個整數:";
  8.     cin>>a;
  9.     cout<<"您輸入的數字是"<<a<<endl;
  10.    
  11.     system("pause");
  12.     return 0;
  13. }
複製代碼

作者: 古昇暘    時間: 2018-7-9 14:44

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"please enter a number:";
  8.     cin>>a;
  9.     cout<<"the number you entered is "<<a<<endl;
  10.    
  11.     system("pause");
  12.     return 0;
  13.    
  14. }
複製代碼

作者: 陳元謙    時間: 2018-7-9 14:44

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6. int  c;
  7. cout<<"請輸入一個整數:";
  8. cin>>c;
  9. cout<<"你輸入的數字是"<<c<< endl;
  10. system("pause");
  11. return 0;
  12.    
  13. }
複製代碼

作者: 吳孟書    時間: 2018-7-9 14:46

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.      int a;
  7.      cout<<"請輸入一整數:";
  8.      cin>>a;
  9.      cout<<"您輸入的數字是"<<a<<endl;

  10.      system("pause");
  11.      return 0;
  12. }
複製代碼

作者: 吳孟修    時間: 2018-7-9 14:47

  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.      int a;
  7.      cout<<"請輸入一個整數:";
  8.      cin>>a;
  9.      cout<<"您輸入的數字是:"<<a<<endl;
  10.      
  11.      system("pause");   
  12.      return 0;
  13. }
複製代碼

作者: 林楷喆    時間: 2018-7-9 14:50

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()  
  5. {
  6.     int a;
  7.     cout<<"請輸入一個整數";
  8.     cin>>a;
  9.     cout<<"您輸入的數字是"<<a<<endl;
  10.      
  11.     system("pause");
  12.     return 0;
  13. }
複製代碼

作者: 黃怡臻    時間: 2018-7-9 14:54

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int  cat;
  7.     cout<<"請輸入一個整數:";
  8.     cin>>cat;        
  9.     cout<<"您輸入的數字是"<<cat<<endl;

  10.     system("pause");
  11.     return 0;
  12. }
複製代碼

作者: 張仲亨    時間: 2018-7-9 14:56

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"請輸入一個整數:";
  8.     cin>>a;
  9.     cout<<"你輸入的數字是"<<a<<endl;
  10.     system("pause");
  11.     return 0;
  12. }   
複製代碼

作者: 張韶庭    時間: 2018-7-9 14:56

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    int  people;
  7.    cout <<"請輸入一整數"<<endl;
  8.    cin>>people;
  9.    cout<<"您輸入的數字是"<<people<<endl;
  10.    
  11.    system("pause");
  12.    return 0;
  13. }
複製代碼

作者: 陳元晴    時間: 2018-7-9 14:57

  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.   int  a;
  7.   cout<<"請輸入一個整數:";
  8. cin>>a;
  9. cout<<"您輸入的數字是"<<a<<endl;
  10.   
  11.      system("pause");
  12.      return 0;   
  13. }
複製代碼

作者: 張百閎    時間: 2018-7-9 14:59

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.   int a;
  7.   cout<<"請輸入一個整數:";
  8.   cin>>a;
  9.   cout<<"您輸入的是:"<<a<<endl;
  10.   system("pause");
  11.   return 0;
  12. }
複製代碼

作者: 李珮薰    時間: 2018-7-9 14:59

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int  a;
  7.     cout<<"請輸入一個整數:";
  8.     cin>>a;
  9.     cout<<"您輸入的數字是"<<a<<endl;
  10.    
  11.     system("pause");
  12.     return 0;
  13. }
複製代碼

作者: 高瑞宥    時間: 2018-7-9 14:59

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"請輸入一整數: ";
  8.     cin>>a;
  9.     cout<<"您輸入的數字是"<<a<<endl;
  10.    
  11.     system("pause");
  12.     return 0;
  13. }
複製代碼





歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/) Powered by Discuz! 7.2