#include <stdio.h>
void mian()
{
void average(float *p,int n);
void search(float (*p)[4],int a );
float score[3][4]={65,67,70,60,80,87,90,81,90,99,100,98};
average(*score,12);
search(score,2);
}
void average(float *p,int n);
{
float *p_end,sum=0,aver;
p_end=p+n-1;
for(;P<=p_end;P++)
sum=sum+(*p);
aver=sum/n;
printf("average =%f\n",aver);
}
void search(float (*p)[4],int n)
{
int i;
float k;
k=*(*(p+n)+i);
for(i=0;i<4;i++)
printf("the score of No%d are %f\n",n,k);
}
为什么老提示在14行有error C2447: missing function header (old-style formal list?),这个错误怎么解决,是什么错误来的??谢谢指点