- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string name="郭又瑄";
- string school="獅湖國小";
- int age=11;
- float h=179.9;
- float w=100.1;
- cout<<"我的大名:"<<name<<endl;
- cout<<"就讀:"<<school<<endl;
- cout<<"年紀:"<<age<<"years old"<<endl;
- cout<<"身高:"<<h<<"cm"<<endl;
- cout<<"體重:"<<w<<"kg"<<endl;
- system("pause");
- return 0;
- }
複製代碼 |