思路:先求出元素的平均值,再求方差
#include#define N 5 using namespace std; void show(double *p,int n) //输出数组 { int i=0; for(i=0;i >a[i]; cout<<"输入的数据为:n"; show(a,N); f(a,N,ave); cout<<"n所输入"<

思路:先求出元素的平均值,再求方差
#include#define N 5 using namespace std; void show(double *p,int n) //输出数组 { int i=0; for(i=0;i >a[i]; cout<<"输入的数据为:n"; show(a,N); f(a,N,ave); cout<<"n所输入"<