这题首先要搞一个转换构造函数,这个很好写。但注意到声明对象a的时候使用的是无参构造函数,所以不忘落下这个玩意 Complex(const char *str){ r = str[0] - '0'; i = str[2] - '0';}Complex() {}