changing reference after initialization in c++

前端 未结 0 1213
盖世英雄少女心
盖世英雄少女心 2020-12-10 19:37
    class mClass {
public:
    int uu = 9;
};

    mClass m1;
    mClass m2;

    m1.uu = 8;
    m2.uu = 7;

    mClass& ppp = m1;

    ppp= &m2; //Is it pos         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题