C++ Program implementing complex number arithmetic