摘要: 对象参数传参时 ​ 示例代码 #include <stdio.h> #include <string.h> class Person { public: Person() { name = NULL;//无参构造函数,初始化指针 } Person(const Person& obj) { // 注: 阅读全文
posted @ 2022-04-22 20:53 乘舟凉 阅读(75) 评论(0) 推荐(0) 编辑