返回列表 發帖
本帖最後由 周雍程 於 2013-10-12 16:51 編輯
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;

  4. int main()
  5. {
  6.     char name[7] = "周雍程";
  7.     char dob[6] = "12/13";
  8.     float height = 135.6;
  9.     float weight = 33.4;
  10.     cout << "我的名字是:" << name << endl;
  11.     cout << "我的生日是:" << dob << endl;
  12.     cout << "我的身高是:" << height << "公分" << endl;
  13.     cout << "我的體重是:" << weight << "公斤" << endl;   
  14.     system("pause");
  15.     return 0;
  16. }
複製代碼

TOP

返回列表