Add copy constructor

main
Micke Nordin 2 years ago
parent b9e3db439f
commit d291f7a330
Signed by: micke
GPG Key ID: 014B273D614BE877

@ -9,6 +9,10 @@ class cnumber {
public: public:
// Constructor // Constructor
cnumber(const cnumber &z) {
r = z.r;
i = z.i;
}
cnumber(const fraction &a, const fraction &b) { cnumber(const fraction &a, const fraction &b) {
r = a; r = a;
i = b; i = b;

Loading…
Cancel
Save