| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1488 人关注过本帖, 1 人收藏
标题:C语言链表题啊!!!
只看楼主 加入收藏
小小
Rank: 1
等 级:新手上路
威 望:1
帖 子:219
专家分:0
注 册:2004-5-31
收藏(1)
 问题点数:0 回复次数:2 
C语言链表题啊!!!

现在期末有个课程设计做了这些完成不来

大虾帮帮小弟,小弟谢万分啊!!

题目是这样的:

用链表实现学生成绩管理系统

[glow=233,#65ccff,3]要求:1。能录入学生各科成绩;

2。能查询学生各科成绩;

3。能修改学生各科成绩;

4。删除学生成绩;

5。退出程序。[/glow]

[glow=255,red,3]你们不要笑我,我太差,我知道你们觉得这题太简单,所以好心人帮帮我啊[/glow]~~~~~

搜索更多相关主题的帖子: 链表 C语言 
2004-06-08 10:57
小小
Rank: 1
等 级:新手上路
威 望:1
帖 子:219
专家分:0
注 册:2004-5-31
收藏
得分:0 

#include"stdlib.h" #include"stdio.h" struct stud {char name[20]; long num; int age; char sex; float score; struct stud *next; }; struct stud *head, *this, *new; main() { char ch; int flag=1; head=NULL; printf("***************************************************************\n"); printf("| welcome to use ! |\n"); printf("| |\n"); printf("| All rights resevered 03101 Huang wenmin |\n"); printf("*********~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~**********\n"); while(flag) {printf("\ntype'E'or'e'to enter new record,"); printf("\ntype'L'or'l'to list all records:"); ch=getchar();getchar(); switch(ch) { case'e': case'E':new_record();break; case'l': case'L':listall();break; default:flag=0; } } } new_record(void) { char numstr[20]; new=(struct stud *) malloc (sizeof (struct stud)); if(head==NULL) head=new; else {this=head; while (this->next!=NULL) this=this->next; this->next=new; } this=new; printf("\nenter name:"); gets(this->name); printf("\nenter number:"); gets(numstr); this->num=atol(numstr); printf("\nenter age:"); gets(numstr); this->age=atoi(numstr); printf("\nenter sex:"); this->sex=getchar();getchar(); printf("\nenter score:"); gets (numstr); this->score=atof(numstr); this->next=NULL; } listall(void) {int i=0; if(head==NULL) {printf("\nempty list. \n");return;} this=head; do{ printf("\nrecord number %d\n",++i); printf("name:%s\n",this->name); printf("num:%ld\n",this->num); printf("age:%d\n",this->age); printf("sex:%c\n",this->sex); printf("score:%6.2f\n",this->score); this=this->next; } while(this!=NULL); }


有一天咖啡的舞者 £
2004-06-08 10:57
小小
Rank: 1
等 级:新手上路
威 望:1
帖 子:219
专家分:0
注 册:2004-5-31
收藏
得分:0 

上边做的 只是简单的输入成绩 学号 姓名 性别

怎样删除和修改 啊??

帮忙啊

斑竹曾说给个示范程序哦

然后帮忙看看的~~记得?


有一天咖啡的舞者 £
2004-06-08 10:59
快速回复:C语言链表题啊!!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014379 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved