问题 更新时间2023/4/3 12:59:00 #include template class f{private:T x,y;public:void f1(T a,T b){x=a;y=b;}T max( ){retum(x>y)?x:y;}};void main( ){f a;a.f1(1.5,3.8); ’cout<<><><>< p="">} 答案 登录 注册 cout< 出自:联大 >> 安阳师范学院-计算机应用技术-C++程序设计