求数组a[]中数的平均数,有人能帮我看看出什么问题了吗?谢谢
x=avg(a[2],2);应改为x=avg(a,2);
你这应该跑不起来吧
x = avg(a[2], 2); //改为 x = avg(a, 2);
调用函数错误,改为x=avg(a,2)