返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>

  3. using namespace std;

  4. int main()
  5. {   
  6.     string name = "黃子豪", school = "龍華國小";
  7.     int age = 11;
  8.     float h = 145.5, w = 34.5;
  9.    
  10.     cout<<"我的名子是"<<name<<endl;
  11.     cout<<"我是人,不是貓,也不是狗"<<endl;
  12.     cout<<"我就讀:"<<school<<endl;
  13.     cout<<"今年"<<age<<"歲"<<endl;
  14.     cout<<"身高:"<<h<<"公分"<<endl;
  15.     cout<<"體重:"<<w<<"公斤"<<endl;
  16.     cout<<"(-_-)"<<endl;
  17.    
  18.     system("pause");
  19.     return 0;
  20. }
複製代碼

TOP

返回列表