#include<iostream.h>
class f {
private:T x, y;
public:f1(T a,T b){x=a;y=b;}
T max( ){return(x>y)?x:y;}
};
main( ) {
f a;
a.f1(1.5,3.8);
cout<<a.max( )<<endl;
}
#include<iostream.h>
class f {
private:T x, y;
public:f1(T a,T b){x=a;y=b;}
T max( ){return(x>y)?x:y;}
};
main( ) {
f a;
a.f1(1.5,3.8);
cout<<a.max( )<<endl;
}
T X,Y;
模板没有声明
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。