Loading…
Reference in new issue
There is no content yet.
Delete Branch 'p2pwza8cv/System:按学号查找成绩'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Deleting a branch is permanent. It CANNOT be undone. Continue?
// 函数功能:按学号查找学生成绩并显示查找结果
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(strcmp(number,stu[i].num)==0)
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");
}
f2b00c0161
into master 2 years agof2b00c0161
.