填空题
下面程序的运行结果为( )。
#include
using namespace std;
#include
template double Average(T x,T y)
{
return (x+y)/2.0;
}
double Average(double x,double y)
{
return (x+y)/2;
}
int main 1
{
int xl=2,yl=3:
float x2=3.3,y2=4.4;
double x3=5.5,y3=6.6;
cout<
【正确答案】
1、2.5 3.85 6.05
【答案解析】