consolidate all repos to one for archive
This commit is contained in:
20
semester_2/programiranje_2/primeri/Example03/Complex.h
Normal file
20
semester_2/programiranje_2/primeri/Example03/Complex.h
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
#ifndef EXAMPLE03_COMPLEX_H
|
||||
#define EXAMPLE03_COMPLEX_H
|
||||
|
||||
class Complex {
|
||||
private:
|
||||
double real, imag;
|
||||
public:
|
||||
Complex(); // default constructor
|
||||
// conversion constructor with default arguments
|
||||
Complex(double r, double i = 0);
|
||||
//Complex(const Complex& c); // copy constructor
|
||||
//~Complex(); // destructor
|
||||
|
||||
void print();
|
||||
//Complex plus(Complex c);
|
||||
Complex plus(Complex& c);
|
||||
};
|
||||
|
||||
#endif //EXAMPLE03_COMPLEX_H
|
||||
Reference in New Issue
Block a user