typedef complex<int, int> int_vec; int_vec a(0, 0); int_vec b(10,10); int_vec c = b - a; cout << "result x = " << c.real() << "result y = " << c.imag() << endl;