返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main ()
  5. {
  6.    string  name="陳泓瑜",school="文山國小";
  7.    int age=11;
  8.    float high=151.4,weight=39.2;
  9.    
  10.    cout<<"姓名: "<<name<<endl;
  11.    cout<<"就讀: "<<school<<endl;
  12.    cout<<"年齡: "<<age<<" 歲"<<endl;
  13.    cout<<"身高: "<<high<<" CM"<<endl;
  14.    cout<<"體重: "<<weight<<" KG"<<endl;
  15.    
  16. system("pause");
  17. return 0;

  18. }
複製代碼

TOP

返回列表