class GearBox { public: GearBox();string type; GearBox(string type){ string temp; cin>>temp;//这里的>>有红下划线,报警 } };
收起
构造函数不可以进行这样的操作。
报告相同问题?