数据结构8-顺序查找的实例

程序实现用一个结构体数组存放学生的记录,用顺序查找输出1001编号学生的具体信息,代码以下所示:数组 #include"stdio.h" typedef struct student{ int id; /*学生编号*/ char name[10]; /*学生姓名*/ float score; /*成绩*/ }Student; int search(Student stu[],int n,i
相关文章
相关标签/搜索