问题 更新时间2024/9/3 9:08:00 下面有一处错误,请给出修改意见。#include class f{ private:float x,y; public:f(float a,float b){x=a;y=b;} float max(){return(x<>< strong=""> } ; main( ){ f a(1.5,3.8); cout<<><> } 答案 登录 注册 应改为float max(){return(x>y)?x:y;} 出自:联大 >> 河南财经大学数据库基础与应用