关于C语言课题设计(学生信息管理系统)

作者&投稿:匡妹 (若有异议请与网页底部的电邮联系)
C语言课程设计,学生信息管理系统~

好的, 给助的,

C语言课程设计 学生信息管理系统 我指点的,你先按想要的。

#include"stdio.h"
#include"stdlib.h"
#include"string.h"
#include"conio.h"
typedef struct Student
{char name[20];
char num[20];
int score;
Student *next;
}student;
student *creat()
{student *head;student *p,*s;int flag=1;
head=(student*)malloc(sizeof(student));p=(student*)malloc(sizeof(student));
head->next=p;
if(!p){printf("失败");return 0;}

printf("输入姓名:");gets(p->name);
printf("输入学号:");scanf("%s",p->num);
printf("输入成绩:");scanf("%d",&p->score);
while(flag)
{s=(student*)malloc(sizeof(student));
getchar();
printf("输入姓名:(输入0退出):");gets(s->name);
if(!strcmp(s->name,"0")){flag=0;break;}
printf("输入学号:");scanf("%s",s->num);
printf("输入成绩:");scanf("%d",&s->score);
p->next=s;
p=s;
}
p->next=NULL;
return head;
}
void listprint(student *head)
{student *p;
p=head->next;
while(p)
{printf("姓名:%s\n学号:%s\n成绩:%d\n",p->name,p->num,p->score);
p=p->next;
}
}
void listfind(student *head,char str[])
{student *p;p=head->next;
if(p)
{
while(p&&(strcmp(p->name,str)&&strcmp(p->num ,str)))
p=p->next;

if(p){ printf("姓名:%s\n学号:%s\n成绩:%d\n",p->name,p->num,p->score);}
else printf("没有该学生信息!\n");
}
}
void listadd(student *head)
{student *p,*s;int flag=1;
p=head->next;
while(p->next!=NULL)p=p->next;
while(flag)
{s=(student*)malloc(sizeof(student));

printf("输入姓名:(输入0退出):");gets(s->name);
if(!strcmp(s->name,"0")){ flag=0;break;}
printf("输入学号:");scanf("%s",s->num);
printf("输入成绩:");scanf("%d",&s->score);
p->next=s;
p=s;
getchar();
}
p->next=NULL;
}
void listdel(student *head,char str[])
{student *p1,*p2;p2=head;
p1=head->next;
while(p1&&(strcmp(p1->name,str)&&strcmp(p1->num ,str)))
{p2=p1;p1=p1->next;}
if(!p1)printf("\n\n\n\n\t 没有该学生的信息\n");
else {p2->next=p1->next;printf("\n\n\n\n\n\t\t\t\t 删除成功!\n\n");free(p1);}
}
void listsort(student *head)
{student *p1,*p2,*p3,*p4,*temp;temp=(student *)malloc(sizeof(student));
p1=p2=head->next;
for(;p1!=NULL;p1=p1->next)
{p2=p3=p1;p4=p3;
for(;p3!=NULL;p3=p3->next)
{
if(p3->score>p4->score){p4=p3;}
}strcpy(temp->name,p2->name);strcpy(temp->num,p2->num);temp->score=p2->score;
strcpy(p2->name,p4->name);strcpy(p2->num,p4->num);p2->score=p4->score;
strcpy(p4->name,temp->name);strcpy(p4->num,temp->num);p4->score=temp->score;}}

void menu()
{printf("\n\n\n\n\t\t\t菜单\n\t\t\t\n\t\t\t请选择\n\t\t\t********************\n\t\t\t*1创建资料\n\t\t\t*2查找\n\t\t\t*3显示全部\n\t\t\t*4添加\n\t\t\t*5删除\n\t\t\t*6排名\n\t\t\t*7退出\n\t\t\t********************\n");
}

int main()
{student *head;char str[20],ch; int count=0;

while(1)
{menu();ch=getch();
system("cls");
if(ch!='1'&&ch!='7'&&count==0){printf("\n\n\n\n\n\n\t\t\t 你还没有创建资料\n");printf("\n\t\t 按任意键回主菜单\n");getch();system("cls");continue;}
else count=1;
switch(ch)
{case '1':head=creat();break;
case '2':printf("输入要查找的姓名或学号:");gets(str);listfind(head,str);break;
case '3':listprint(head);break;
case '4':listadd(head);break;
case '5':printf("输入要删除的姓名或学号:");gets(str);listdel(head,str);break;
case '6':listsort(head);listprint(head);break;
case '7':printf("\n\n\n\n\n\n\t\t\t 谢谢使用\n\n\n\n\n");getchar();return 0;
}printf("\n\t\t 按任意键回主菜单\n");getch();system("cls");
}

}

什么时候要,我这两天可以免费为你写一个!


关于C语言课设,急!
请问C语言课程设计软件系统需求分析、系统分析,设计报告怎么写,具体一点,我们的课题是物流传送分拣仿真软件开发,应该怎么入手。刚学完C语言,感觉课设和我们的水平跨度太大了,不... 请问C语言课程设计软件系统需求分析、系统分析,设计报告怎么写,具体一点,我们的课题是物流传送分拣仿真软件开发,应该怎么入手。刚学完C...

求大神解决。C语言程序设计课题,飞机订票系统
这就是最简单的一个sturct或者class应运啊!自己定义下,慢慢理顺就好了!很简单的

求助C语言中学生管理系统课题的重点和难点
学生管理系统的话:首先系统可以用结构体数组实现,也可以用链表。重点就是对数组的操作,比如求和,平均值,排序。如果是链表实现,那就是链表的增删改查排序。还有比较重要的就是文件操作,很固定的知识。

c语言程序设计课题 运动管理系统 某单位组织各部门参加冬运会,项目分...
运动管理系统 某单位组织各部门参加冬运会,项目分为男子项目与女子项目 保证质量,绝对原创哦.

C语言问题(1分钟内随机产生1000个随机数),请教!
如上的方法,随机数是没问题的.你要控制时间可以用GetTickCount返回windows运行的时间(毫秒)计算时间间隔来控制 include <windows.h> int main(){ long lStart = GetTickCount(); \/\/例如123456000 \/\/计算1000个随机数 long lEnd = GetTickCount(); \/\/例如123456333 while (lEnd - lStart <= 1000)...

浙江理工大学是985院校还是211院校?
国家双语教学示范课程(2门):C语言程序设计、服装立体造型设计基础。 师资队伍 截至2021年6月,有教职工2000余人,其中具有副高以上职称890余人,正高职称270余人。拥有教育部创新团队2个,省重点科技创新团队7个,省重点文化创新团队1个,省高等学校创新团队5个。博士后科研流动站2个;国家“万人计划”领军人才3人,教育部...

沈智慧主持过哪些湖南省教育厅的教学改革项目?
作为重点参与成员,她参与了2008年湖南省教育厅认定的特色专业——《计算机科学与技术》的建设。在省级精品课程项目中,沈智慧在《C语言程序设计》课程中位列第三,该项目于2010-2012年间进行。她还深度参与了全国高校教学研究中心的教育科学“十一五”规划课题,课题排名第二,研究主题为《高校应用型人才...

C语言程序设计 班级学生成绩管理系统
C语言课程设计报告—班级成绩管理系统 需要分析: 学生成绩管理系统有13种功能。把这13个功能做成13个子函数。在主函当数中设计一个菜单对这13个子数进行管理。来实现对整个系统的操作。 根据课题的要求。每一个学生的包括姓名(char)、学号(char)、M门课程的成绩(float).再加上系统功能上的要求每一学生的信息...

c语言通讯录管理设计的实训总结
我于 年 月 日参加了为期 天的C语言开发实训,实训课题为《通讯录管理设计》。在本次实训过程中,我们小组 人通过精诚合作,共通努力,在 老师的耐心指导下,圆满完成实训任务。通过本次实训,巩固了平时所学的c语言基础知识,对C语言系统有了一个比较直观的了解和应用。特别是在解...

毕业论文答辩的自我鉴定怎么写
大学主要学的是计算机专业,在专业课上也学了繁多的科目,如《数据结构》、《操作系统》、《c语言程序设计》、《unix系统教程》、《80x86汇编语言程序设计》、《数据库基捶、《软件工程》等各类科目,其中不乏艰涩难懂的知识,有些到现在也没有搞得很明白,现在回忆起大一刚开始学习c语言基础时的情景,还是如此的生动...

费县19818904373: 关于C语言课题设计(学生信息管理系统) -
冶到金刚: #include"stdio.h" #include"stdlib.h" #include"string.h" #include"conio.h" typedef struct Student {char name[20]; char num[20]; int score; Student *next; }student; student *creat() {student *head;student *p,*s;int flag=1; head=(student*)malloc...

费县19818904373: c语言程序设计:学生信息管理系统设
冶到金刚: 1.录入2.显示3.排序4.查询5.修改6.删除7.退出 学号","姓名","成绩一","成绩二","平均成绩

费县19818904373: C语言课程任务设计——学生信息管理系统 -
冶到金刚: #include /*引用库函数*/ #include #include #include typedef struct /*定义结构体数组*/ ...

费县19818904373: 如何用C语言编写学生信息管理系统 -
冶到金刚: 参考如下学生信息管理系统的C源代码吧.#include <stdio.h>#include <string.h>/*定义学生结构体*/ struct Student { char ID[20]; char Name[20]; float Mark1; float Mark2; float Mark3; float Average; };/*声明学生数组及学生数量*/ struct Student ...

费县19818904373: C语言 学生信息管理系统 课程设计 -
冶到金刚: #include"stdio.h"#include"conio.h"#include"string.h"#include"stdlib.h" void look(); /*声明查看函数*/ void save(); /*声明保存函数*/ void search_name(); /*声明按姓名查看函数*/ void search_number(); /*声明按学号查看...

费县19818904373: 用C语言编写一个学生信息管理系统
冶到金刚: #include "stdio.h" #include "stdlib.h" #include "string.h" #include "conio.h" jiemian();struct student { char name[50]; char sex[5]; int age; char num[50]; float score1; float score2; float score3; float sum; float ave;}stu[50],del; void gn1() {int...

费县19818904373: c语言课设学生信息管理系统 -
冶到金刚: 我没测试程序的各个功能,只是在 Visual Studio 6.0 能运行了~~~,共三个文件如下:student.hdegree.cppmain.cpp

费县19818904373: C语言 学生信息管理系统设计 -
冶到金刚: 呵呵~~ 我也找了很久哦~~ 第一种: #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> struct student{ int id; char name[10]; int age; char sex[10]; char birthady[20]; int tel; char nativeplace[50]; }st[50]; int i=0; void shuru() { ...

费县19818904373: c语言做学生信息管理系统.学生信息包括:学号,姓名,年龄,性别,出生年月,地址,电话,E - mail等. -
冶到金刚: \.sex; if(numstus==0) { printf(" printf(");i&lt: for(i=0;n\请输入名次,stud[j];n)&quot?(y/3' stud[i];;n" printf("/:\n" gets(str);i&lt.score/?(y/\break; for(i=0," int writetotext(student stud[]).C\t%s\ int findrecord(student stud[]) / printf(&quot.h> } return i: for(i...

费县19818904373: c语言编写学生信息管理系统 -
冶到金刚: #include"stdio.h" #define SIZE 100000 #include"string.h" #include"stdlib.h" #include"conio.h" struct student {int n; int num; char name[10]; int C; int Maths; int En; float ave; }stu[SIZE]; /*录入数据*/ void finput() { FILE *fp; int i,p; fp=fopen(...

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 星空见康网