|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i'm a noob just started to learn programing
what do these lines mean:double complex::realPart() const { return real; } complex operator+ (const complex& lhs, const complex& rhs) { return complex(lhs.real+rhs.real, lhs.imag+rhs.imag); } |
|
#2
|
||||
|
||||
|
Quote:
Quote:
Are there more specific things you don't understand? |
|
#3
|
|||
|
|||
|
thank you for answearing me one more thing would help.
i've inserted my comments are they right? complex operator* (const complex& lhs, const complex& rhs) //overloading of complex multiplication { return complex(lhs.real*rhs.real - lhs.imag*rhs.imag, lhs.real*rhs.imag+lhs.imag*rhs.real); //complex multiplication is used to solve problem? } how far off am i with the comments? thanx again ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Software Design > i'm a noob just started to learn programing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|