摘要: ###1.加号运算符重载 实现自定义数据类型的加运算 #include <iostream> using namespace std; class Person { public: int m_A, m_B; //1.成员函数重载+号 Person operator+(const Person &p 阅读全文
posted @ 2021-01-19 11:12 flyingswallow 阅读(211) 评论(0) 推荐(0) 编辑