class Person
{
    //类中有const修饰的成员属性时,需要使用构造函数的初始化列表
    //const int age;
    //类中有引用的成员属性时,需要使用构造函数的初始化列表
    int age;
    int high;
public:
    Person(int age,int high):age(age),high(high) //age(age) = int &age = age;初始化的值从主函数传入传入
    {
        cout << "有参构造" << endl;
    }
    void show()
    {
        cout << age << "\t" << high << endl;
    }
};