Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <iostream>
- #include <string.h>
- #pragma warning(disable:4996)
- class Complex {
- private:
- int *x; // real
- int *y; // imaginar
- public:
- Complex(); // Constructor
- Complex(int reala);
- Complex(const char* im);
- Complex(const Complex &); // constr de copiere
- Complex(int reala, const char* im);
- ~Complex(); // destructor
- int getX() const { return x[0]; }
- int getY() const { return y[0]; }
- Complex add(Complex b); // Adunare
- Complex minus(Complex b); // Scadere
- Complex mul(Complex b); // Inmultire
- Complex div(Complex b); // Impartire
- void print();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement