摘要: 📕运算符重载 1.复数类 运算符重载目的:使对象运算表现得和编译器内置类型一样; 复数类例子 #include<iostream> using namespace std; class CComplex{ public: CComplex(int r = 0, int l = 0): mreal( 阅读全文
posted @ 2022-06-08 11:23 D-booker 阅读(413) 评论(1) 推荐(0)