完善复数类
#ifndef _COMPLEX_H_#define _COMPLEX_H_class Complex{ double a; double b;public: Complex(double a = 1, double b = 2);//函数声明时指定默认值,定义则不需要 double getA(); double getB(); double getModuls(); Complex operator + (const Complex& c); Complex ..
原创
2020-06-24 20:46:29 ·
115 阅读 ·
0 评论