第四章
文章平均质量分 54
Aseela
这个作者很懒,什么都没留下…
展开
-
第一题
#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 21:40:05 · 137 阅读 · 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 21:41:15 · 141 阅读 · 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 Co原创 2015-04-27 21:43:47 · 117 阅读 · 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-04-27 21:47:47 · 168 阅读 · 0 评论 -
第四题
#include using namespace std;class Matrix //定义Matrix类 {public:Matrix(); //默认构造函数 friend Matrix operator+(M原创 2015-04-27 21:46:05 · 147 阅读 · 0 评论 -
第五题
#include //using namespace std;class Matrix {public: Matrix(); friend Matrix operator+(Matrix &,Matrix &); friend ostream& operator friend istream& operator>>(istream&,Matrix&);原创 2015-04-27 21:47:44 · 210 阅读 · 1 评论 -
第七题
#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-04-27 21:49:01 · 153 阅读 · 0 评论