![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
第四章
文章平均质量分 61
bing0528
这个作者很懒,什么都没留下…
展开
-
第一题
#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-05-12 20:02:10 · 195 阅读 · 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-05-12 20:10:43 · 208 阅读 · 0 评论 -
第三题
#include class Complex {public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} Complex operator+(Complex &c2); Complex operator+(int &i); friend Compl原创 2015-05-12 20:20:32 · 306 阅读 · 0 评论 -
第四题
#include class Matrix {public: Matrix(); friend Matrix operator+(Matrix &,Matrix &); void input(原创 2015-05-12 20:26:16 · 219 阅读 · 0 评论 -
第五题
#include class Matrix {public: Matrix(); friend Matrix operator+(Matrix &,Matrix &); friend ostream& operator<<(ostream&,Matrix&); friend istream& operator>>(istream&,Matrix&);原创 2015-05-12 20:54:32 · 375 阅读 · 0 评论 -
第六题
#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-12 20:58:58 · 254 阅读 · 0 评论 -
第七题
#include using namespace std; class Student {public: Student(int,char[],char,float); int get_num(){return num;} char * get_name(){return name;} char get_sex(){return sex;} void displa原创 2015-05-12 21:02:04 · 168 阅读 · 0 评论