返回列表 發帖
  1. #include<iostream>//
  2. using namespace std;//
  3. int main()//
  4. {
  5.     cout<<"Hello"<<endl;
  6.     system("pause");
  7.     return 0;
  8. }
複製代碼

TOP

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

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

返回列表