test ed studio LAB2
This commit is contained in:
parent
0b992089f3
commit
9b0c46bccc
12 changed files with 323 additions and 0 deletions
20
LAB2/Lezione2/complesso.h
Normal file
20
LAB2/Lezione2/complesso.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef complesso_h
|
||||
#define complesso_h
|
||||
|
||||
class Complesso {
|
||||
public:
|
||||
Complesso(const Complesso &orig);
|
||||
|
||||
void stampami();
|
||||
|
||||
Complesso operator+(const Complesso &addendo);
|
||||
Complesso &operator=(const Complesso &orig);
|
||||
|
||||
private:
|
||||
double m_real;
|
||||
double m_imag;
|
||||
};
|
||||
|
||||
Complesso operator+(const Complesso &uno, const double &due);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue