摘要: 运算符重载可以将改变本来运算符的数据类型 有两种形式:重载为类的友元函数或成员函数 1.重载为友元函数: friend type operator 运算符( ) #include <bits/stdc++.h> using namespace std; class Complex { public: 阅读全文
posted @ 2022-04-23 17:02 misasteria 阅读(40) 评论(0) 推荐(0) 编辑