#include<iostream>
using namespace std;
class People{
protected:
int age;
double height;
double weight;
static int num;
public:
People(int a ,double h,double w){
age=a;
height=h;
weight=w;
num++;}
~People(){};
void Sporting(){height++;};
void Eating () {weight++;};
void Sleeping (){
age++;
height++;
weight++;
}
static int getNum(){ return num;}
void Show() {
cout<<"age"<<" "<<"heigth"<<" "<<"weight"<<" "<<endl;
cout<<age<<" "<<height<<" "<<weight<<endl;}
void showNum(){cout<<"number:"<<num<<endl;};
};
int People::num=0; //一定要给静态函数赋初值
void main(){
People t1(52,180,56);
People t2(41,134,42);
t1.Show();
t2.Show();
t1.showNum();
}