c语言程式设计

来源:百度知道 编辑:UC知道 时间:2024/05/28 13:26:04
用链表实现一个简单的班组管理系统,实现基本功能如下:
1. 可以查看班组所有成员的基本信息;
2. 能够插入新同学的基本信息;
3. 能够删除指定姓名/学号的学生信息;
4. 能够根据学号查询学生的基本信息。
5. 实现其它的统计功能,如学生总人数等。

感谢大家了。。。

虽然没有分,虽然我花了2个小时,中间因为忘了保存代码丢了又一次从头写……怨念啊!!!代码贴给你,我在TC下试过了,可以运行的。
---------------------------------------------------------------
#include<stdio.h>
#include<string.h>
#include<malloc.h>
struct student
{
char name[10];
int number;
struct student *next;
};
int n=0;
void main()
{
void fun1(struct student *);
struct student *fun2(struct student *,struct student *);
struct student *fun3(struct student *,int);
void fun4(struct student *,int);
struct student *head,*stu;
int num,sum,t=1;
char ch;
head=NULL;
while(t)
{
printf("Input an character ranging from a to f to choose function\n");
printf("a: Scan all the student\n");
printf("b: Insert a new student\n");
printf("c: Delete the chosen student\n");
printf("d: Search the chosen student\n");