返回列表 發帖

我的第一支程式

本帖最後由 tonyh 於 2013-2-16 14:35 編輯
  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. }
複製代碼

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"蘇昱安很笨"<<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<<"劉泳鱔很笨!"<<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<<"hello"<<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<<"hi!?"<<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<<"Hello!"<<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<<"白痴"<<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<<"Hello"<<endl;
  7.     system("pause");
  8.     return 0;
  9. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int  x=12,y=5;
  7.     cout<<"當X的直為"<<x<<",y的值為"<<y<<"時..."<<endl;
  8.     cout<<"x+y="<<x+y<<endl;
  9.     cout<<"x-y="<<x-y<<endl;
  10.     cout<<"x*y="<<x*y<<endl;
  11.     cout<<"x/y="<<x/y<<endl;
  12.     cout<<"x%y="<<x%y<<endl;
  13.     system("pause");
  14.     return 0;
  15. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int x=123, y=465;
  7.     cout<<"當x的值為"<<x<<",y的值為"<<y<<"時..."<<endl;
  8.     cout<<"x+y="<<x+y<<endl;
  9.     cout<<"x-y="<<x-y<<endl;
  10.     cout<<"x*y="<<x*y<<endl;
  11.     cout<<"x/y="<<x/y<<endl;
  12.     cout<<"x%y="<<x%y<<endl;
  13.     system("pause");
  14.     return 0;
  15. }
複製代碼

TOP

本帖最後由 黃崇維 於 2013-3-2 16:30 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    
  7.   cout <<" 我是黃崇維 "<<endl;
  8.    
  9.   system("pause");
  10.   return 0;  
  11.    
  12. }
複製代碼

TOP

  1. #include<iostream>  #include<cstdlib>    using namespace std;
  2. int main()
  3. {
  4.   cout<<" 我是郭凡瑛 "<< endl;
  5.     system("pause");     
  6.     return 0;           
  7. }
複製代碼

TOP

  1. //標頭檔
  2. #include<iostream>
  3. #include<cstdlib>
  4. using namespace std;
  5. //主程式
  6. int main()
  7. {
  8.    cout <<" 1+2=5 " <<endl;
  9.    system("pause");
  10.    return 0;   
  11. }
複製代碼
May

TOP

  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. }
複製代碼
May

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;

  4. int main()
  5. {
  6. cout<<"Hello!"<<end l;   
  7. system("pause");   
  8. return 0;
  9. }
複製代碼

TOP

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

TOP

  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>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.      int x=12, y=5;
  7.      cout<<"當x="<<x<<"y="<<y<<endl;
  8.      cout<<"x+y="<<x+y<<endl;
  9.      cout<<"x-y="<<x-y<<endl;
  10.      cout<<"x*y="<<x*y<<endl;
  11.      cout<<"x/y="<<x/y<<endl;
  12.      cout<<"x%y="<<x%y<<endl;
  13.     system("pause");         
  14.     return 0;
  15. }           
複製代碼

TOP

返回列表