没有合适的资源?快使用搜索试试~ 我知道了~
首页C语言版课程设计 学生信息管理系统
资源详情
资源评论
资源推荐

#i nclude<stdio.h>
#i nclude<string.h>
#i nclude<stdlib.h>
#i nclude<malloc.h>
#define LEN sizeof(struct student)
int m;
struct student
{
long num;
char name[20];
char addr[30];
char xueli[20];
struct student *next;
};
void print(struct student *head)
{
struct student *p;
printf("Now,There %d records are:",m);
p=head;
if(head!=0)
do

{
printf("%ld\t",p->num);
printf("%s\t",p->name);
printf("%s\t",p->addr);
printf("%s\n",p->xueli);
p=p->next;
}while(p!=0);
}
void main()
{
int n,w;
struct student *head=0;
struct student *creat();
void add(struct student *head);
struct student *del(struct student *head);
void search(struct student *head);
do
{
printf("\t\t*******************************************\n");
printf("\t\t*** Student Information Management System***\n");
printf("\t\t********************************************\n");
printf("\t\t**** choose ********************\n");

printf("\t\t**** 1 新建学生链表******* *************\n");
printf("\t\t**** 2 Modify data **************\n");
printf("\t\t**** 3 Search by people .xueli and num ****\n");
printf("\t\t**** 4 Browse data *****************\n");
printf("\t\t**** 5 add data ************\n");
printf("\t\t**** 6 Exit *************\n");
printf("\t\t******************************************\n");
printf("\t\t*******************************************\n");
printf("choose your number(1-6):[ ]\b\b");
do
{
scanf("%d",&n);
if(n>6||n<1)
{
w=1;
printf("Error,please input again(1-6):");
}
else w=0;
}while(w==1);
switch(n)
{
case 1:head=creat();break;
剩余12页未读,继续阅读














安全验证
文档复制为VIP权益,开通VIP直接复制

评论0