主观

在下面程序的横线处填上适当内容,以使该程序执行结果为:50 4 34 21 10 0  7.1  8.1  9.1  10.1  11.1

#include

template

void f(____________)

{____________

for(int i=0;i

{t=a[i];a[i]=a[n-1-i;a[n-1-i]=t;}

void main()

{int a[5]=10,21,34,4,50};

double[6]=11.1,10.1,9.1,8.1,7.1};

f(a,5);f(d,6);

for (int i=0;i<5;i++)

cout<

cout<

for(i=0;i<6;i++)

cout<

cout< endl;

}

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

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服