返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int number;
  7.     string str;
  8.     cout<<"請輸入一個數字"<<endl;
  9.     cout<<"請輸入一個文字";
  10.     cin>>number;
  11.     cin>>str;
  12.     cout<<"您輸入的數字是:"<<number<<endl;
  13.     cout<<"您輸入的文字是:"<<str<<endl;
  14.     system("pause");
  15.     return 0;
複製代碼

TOP

返回列表