王老师:19139051760(拨打)复制微信 题目 更新时间:2024/9/3 #include class point{private:float x; public:void f(float a){x=a;} void f( ){x=0;} friend float max(point& a,point& b); }; float max(point& a,point& b){return(a.x>b.x)? a.x:b.x;}void main( ){ point a,b; a.f(2.2);b.f(3.3); cout<<>< p=""> } 答案 登录 注册 cout<不能调用 出自:联大 >> 河南财经大学数据库基础与应用 河南财经政法大学继续教育学院