12-28

#include 

using namespace std;
class Person
{
    int *age;
    string &name;
public:
    void ss()
    {cout<<"年龄:"<<*age<age)=*(other.age);
    }
    Person(int age,string name):age(new int(age)),name(name)
    {
        cout<<"person malloc success"<

12-28_第1张图片

你可能感兴趣的:(c语言)