返回列表 發帖
本帖最後由 彭煥宇 於 2017-9-25 20:01 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string name="彭煥宇";
  7.     string school="陽明國中";
  8.     int age=9;
  9.     float h=158.4;
  10.     float w=48.6;
  11.     cout<<"名字:"<<name<<endl;
  12.     cout<<"就讀:"<<school<<endl;
  13.     cout<<"年齡:"<<age<<endl;
  14.     cout<<"身高:"<<h<<endl;
  15.     cout<<"體重:"<<w<<endl;
  16.     system("pause");
  17.     return 0;
  18. }
複製代碼

TOP

返回列表