0

I'm having problems. I get the addition part. can somebody help.

Here is the code i wrote so far.

thanks,

```
#ifndef complex.h
#define complex.h
class complex
{
public:
complex();
complex(double real, double imaginary);
void complex addition(const complex &a);
void complex printcomplex();
void complex setcomplexnumber();
private:
double realpart, imaginarypart;
};
#endif
//constructor
complex::complex(double real, double imaginary)
{
setcomplexnumber(real, imaginary);
}
void complex:: addition( const complaex &a)
{
//adding-This is where i'm stuck\\
}
void complex:: printcomplex()
{
cout<< '(' <<realpart <<", " << imaginarypart<<')'
}
void complex::setcomplexnumber(double real, double imaginary)
{
realpart=real;
imaginarypart=imaginary;
}
```