本帖最後由 夏子涵 於 2020-3-7 17:30 編輯
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string name="夏子涵",school="高雄女中";
- int age=16;
- float h=164.8,w=49.9;
- cout<<"我的大名: "<<name<<endl;
- cout<<"就讀: "<<school<<endl;
- cout<<"今年: "<<age<<" 歲"<<endl;
- cout<<"身高: "<<h<<" 公分"<<endl;
- cout<<"體重: "<<w<<" 公斤"<<endl;
- system("pause");
- return 0;
- }
複製代碼 |