摘要: c++ 在class A的构造函数中初始化另一个类的对象(调用B::B())时报错: error: no matching function for call to 'B:B()' 1. 现象 看如下代码: class B, 构造函数接受一个int参数i_b, 并赋值给this->b, #inclu 阅读全文
posted @ 2022-06-04 15:24 编程驴子 阅读(906) 评论(0) 推荐(0) 编辑