Arithmetic/Complex: Difference between revisions
→{{header|C++}}: The example didn't output
(+ Pascal) |
(→{{header|C++}}: The example didn't output) |
||
Line 180:
=={{header|C++}}==
<cpp>
#include <iostream>
#include <complex>
using std::complex;
Line 186 ⟶ 187:
complex<double> a(1.0, 1.0);
complex<double> b(3.14159, 1.25);
// addition
// multiplication
// inversion
// negation
}
</cpp>
|