#include <iostream> #include <complex> using namespace std; int main() { complex<double> cmpx1(1, 0); complex<double> cmpx2(1, 1); cout << cmpx1 << " " << cmpx2 << endl; cmpx1 += 10; cmpx2 += 10; cout << cmpx1 << " " << cmpx2 << endl; return 0; }
(1,0) (1,1) (11,0) (11,1)