补完函数定义,要求返回二维数组a[m][n]中所有元素的平均值.假定在计算过程中采用变量s存放累加值,采用i和j作为扫描数组的循环变量。
double mean(double a[m][n],int m,int n)
{
int i,j;
double s=0.0;
//在下面填上合适的for双重循环语句
return s/(m*n);
}
急等!!!谢谢帮忙
谢谢啦,希望你能帮我看看我的其他两个问题
http://zhidao.baidu.com/question/808721115244060532.html?quesup2&oldq=1
http://zhidao.baidu.com/question/808785116071493932.html?quesup2&oldq=1
这个回答如果满意请采纳