C++——运算符重载(二) 友元函数实现复数加法#include <iostream>using namespace std;class Complex{public: Complex() { } Complex(int real,int imag) { this->real_ = real; this->imag_ = imag; } c++ 2023-09-02 212 点赞 3 评论 321 浏览