函数返回的临时对象为const类型,const引用 #include #include using namespace std;class A{public:A(){ m_Int = 10; }public:int m_Int;};A GetInt(){A a;return a;}int Test( const A& pA ){cout re 笔试/面试 2023-09-02 49 点赞 0 评论 74 浏览