本帖最後由 陳泳淇 於 2020-7-4 20:43 編輯
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string name="陳泳淇", school="kas";
- int age=15;
- float h=太矮, w=太重;
- cout<<"我的大名: "<<name<<endl;
- cout<<"就讀 :"<<school<<endl;
- cout<<"今年: "<<age<<" 歲"<<endl;
- cout<<"身高: "<<h<<" 公分"<<endl;
- cout<<"體重: "<<w<<" 公斤"<<endl;
- system("pause");
- return 0;
- }
複製代碼 |