- #include<iostream>//標頭檔
- #include<cstdlib> //標頭檔
- using namespace std;//使用命名空間
- int main()
- {
- string name ="徐楷恩", school ="陽明國中" ;
- int age =15;
- float h =168.5, w =62.7;
- cout <<"我的大名: "<<name<<endl;
- cout <<"就讀: "<<school<<endl;
- cout <<"今年: "<<age<<" 歲"<<endl;
- cout <<"身高: "<<h<<" 公分"<<endl;
- cout <<"體重: "<<w<<" 公斤"<<endl;
- system ("pause");
- return 0;
- }
複製代碼 |