![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
第四章
gan920hp
这个作者很懒,什么都没留下…
展开
-
第一题
#include using namespace std;class Complex {public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} double get_real(); double get_imag(); void display();原创 2015-04-27 22:39:48 · 255 阅读 · 0 评论 -
第二题
#include using namespace std;class Complex {public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} Complex operator+(Complex &c2); Complex operator-(Complex原创 2015-04-27 22:40:48 · 419 阅读 · 0 评论 -
第5题
#include using namespace std;class Matrix {public: Matrix(); friend Matrix operator+(Matrix &,Matrix &); friend ostream& operator friend istream& operator>>(istream&,Matrix&);原创 2015-05-10 20:31:38 · 379 阅读 · 0 评论 -
第6题
#include using namespace std;class Complex {public: Complex(){real=0;imag=0;} Complex(double r){real=r;imag=0;} Complex(double r,double i){real=r;imag=i;} operator double(){retur原创 2015-05-10 20:32:31 · 406 阅读 · 0 评论 -
第三题
原创 2015-05-10 20:19:49 · 368 阅读 · 0 评论 -
第4题
原创 2015-05-10 20:23:28 · 453 阅读 · 0 评论