返回列表 發帖
本帖最後由 劉嘉琳 於 2012-8-6 11:08 編輯
  1. #include<iostream>//
  2. using namespace std;//
  3. int main()//
  4. {
  5.     cout<<"helo"<<endl;
  6.     system("pause");
  7.     return 0;
  8. }
複製代碼

TOP

  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int x;
  6.     int y;
  7.     cout<<"請輸入x的值: ";
  8.     cin>>x;
  9.     cout<<"請輸入y的值: ";
  10.     cin>>y;
  11.     cout<<"您剛剛輸入的x值為"<<x;
  12.     cout<<"y值為"<<y<<endl;
  13.     system("pause");
  14.     return 0;
  15. }
複製代碼

TOP

  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     cout<<"我"<<endl;
  6.     cout<<"愛"<<endl;
  7.     cout<<"C"<<endl;
  8.     cout<<"+"<<endl;
  9.     cout<<"+"<<endl;
  10.     system("pause");
  11.     return 0;
  12. }
複製代碼

TOP

返回列表