求大神指点;目的在函数中输出学生的成绩,然后找出不及格成绩的个数。编译没有错,但是运行提示错误
#include<stdio.h>int main()
{
int n;
void search (float (*)[4],int);
float score[3][4]={{65,57,69,70},{53,44,90.98},{67,0,73,82}};
for(n=0;n<3;n++)
search(score,n);
return 0;
}
search (float (* p)[4],int n)
{
int i,j,t;
printf("NO.%d student's score are:",n+1);
for(i=0;i<4;i++)
printf("%d",* (*(p+n)+i));
printf("\n");
for(j=0;j<4;j++)
if(* (*(p+n)+i)<60)
t=t+1;
printf("%d subjects had failed\n",t);
}
运行后,错误提示是unresolved external symbol "void __cdecl search(float (*)[4],int)" (?search@@YAXPAY03MH@Z)
fatal error LNK1120: 1 unresolved externals