Search:
Forum
General C++ Programming
<complex>
<complex>
Jul 2, 2010 at 2:45am UTC
timothyguo
(21)
here is a complex
complex<
double
> com(10, 2);
I can change the real part with
com += 10;
//com now is (20, 2)
but what can I do to change the image part?
Last edited on
Jul 2, 2010 at 2:46am UTC
Jul 2, 2010 at 3:04am UTC
Duthomhas
(13282)
com += complex <
double
> (0, 8);
Hope this helps.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs