C++的代码 cout << real << "+" << imag << 'i' ; 就是在屏幕上先输出变量real的值,然后是一个+号,再输出变量imag的值,再输出一个字母i。例如:real =3 而 imag =4就会输出:3+4i