作为类成员函数的例子: #include <iostream> using namespace std; class Complex{ public: Complex(){real = 0; imag = 0;} Complex(double r, double i){real = r; imag = i;} #include <iostream> using 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交