主观

#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;

}

main( ){

point a, b;

a.f(2.2);

b.f(3.3);

cout<

}

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服