#include <iostream.h>
template <______________>
void f(______________)
{
if(sizeof(T1)>sizeof(T2))
x=(T1)y;
else
y=(T2)x;
}
void main(){
double x=134.2;
int y=22;
f(x,y);
cout<&
#include <iostream.h>
template <______________>
void f(______________)
{
if(sizeof(T1)>sizeof(T2))
x=(T1)y;
else
y=(T2)x;
}
void main(){
double x=134.2;
int y=22;
f(x,y);
cout<<″x=″<<x<<″,y=″<<y;
}
第1空:CLASS T1,CLASS T2
第2空:T1 &X,T2 &Y
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。