This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// 12函数功能:按学号查找学生成绩并显示查找结果
void SearchbyNum(STU stu[], int n, int m)
{
long number;
int i, j;
printf("Input the number you want to search:");
scanf("%ld", &number);
for(i=0;i<n;i++)
if (stu[i].num==number)
printf("%ld\t%s\t", stu[i].num, stu[i].name);
for (j=0; j<m; j++)
printf("%.0f\t", stu[i].score[j]);
}
printf("%.0f\t%.0f\n", stu[i].sum, stu[i].aver);
return;
printf("\nNot found!\n");