当前位置:三九宝宝网 → 宝宝教育 → 写作范文 → 正文

学生学籍管理系统

更新:01-02 整理:39baobao.com
字体:

[学生管理系统php源码谁有]php学生管理系统源码,供大家参考,具体内容如下 功能: 1.添加/删除/修改2.数据存储.界面分布:index.php --->主界面add.php --->stu添加action --->sql中add/del/update (处理html...+阅读

#include//定义结构体 struct student { int number; char name[20]; float score1; float score2; float score3; float ave; }; //单个学员录入函数 void input(struct student *st) { printf("\n学号: "); scanf("%d",&st->number); printf("姓名: "); fflush(stdin); gets(st->name); printf("三门课成绩:\n成绩1: "); scanf("%f",&st->score1); printf("成绩2: "); scanf("%f",&st->score2); printf("成绩3: "); scanf("%f",&st->score3); st->ave=(st->score1+st->score2+st->score3)/3; } //显示学员信息函数 void display(struct student *st,int n) { int i; printf("\n\t学号\t姓名\t平均成绩\n"); for(i=0; i{ printf("\t%d\t%s\t%5.2f\n",st->number,st->name,st->ave); st++; } } //排序函数,大到小 void sorting(struct student stu[],int n) { struct student temp; int i,j; for(i=0; i{ for(j=0; j{ if(stu[j].ave { temp=stu[j]; stu[j]=stu[j+1]; stu[j+1]=temp; } } } } //插入函数 void insertinfo(struct student stu[], struct student *st1, int n) { int i,j; for(i=0; i{ if(stu[i].aveave) break; } for(j=n; j>i; j--) stu[j]=stu[j-1]; stu[i]=*st1; } //删除学员信息函数 void deleteinfo(struct student stu[], int num, int n) { int i,j; for(i=0; i{ if(stu[i].number==num) break; } for(j=i; jstu[j]=stu[j+1]; } void main() { struct student stu[50],stu1; char ch; int i=0,num; //通过调用函数录入学员的信息 printf(" 请输入学员信息: \n\n"); do { input(&stu[i++]); printf("是否继续(Y/N)? "); fflush(stdin); ch=getchar(); }while(ch=='Y'||ch=='y'); //显示学员信息 printf("\n排序前学员的信息如下: \n"); display(stu,i); //排序函数 sorting(stu,i); //显示学员信息 printf("\n排序后学员的信息如下: \n"); display(stu,i); //插入函数 printf("\n是否要插入新学员(Y/N)? "); fflush(stdin); ch=getchar(); while(ch=='Y'||ch=='y') { printf("\n请输入要插入学员的信息: \n"); input(&stu1); insertinfo(stu,&stu1,i); i++; printf("\n是否继续插入新学员(Y/N)? "); fflush(stdin); ch=getchar(); } //显示学员信息 printf("\n插入后学员的信息如下: \n"); display(stu,i); //删除函数 printf("\n是否要删除某个学员(Y/N)? "); fflush(stdin); ch=getchar(); while(ch=='Y'||ch=='y') { printf("\n请输入要删除学员的学号: \n"); scanf("%d",&num); deleteinfo(stu,num,i); i--; printf("\n是否继续删除某个学员(Y/N)? "); fflush(stdin); ch=getchar(); } //显示学员信息 printf("\n删除后学员的信息如下: \n"); display(stu,i); }

本文地址:https://www.39baobao.com/show/33_25069.html

以上内容来自互联网,请自行判断内容的正确性。若本站收录的信息无意侵犯了贵司版权,请联系我们,我们会及时处理和回复,谢谢.

以下为关联文档:

数据库系统原理课程设计图书借阅管理系统#include#includeclass Book{ // 书籍基类 protected: char Title[40]; // 书名 long Code; // 条码 int Type; // 0表示书,1表示杂志 public: Book(); Book(char *title,long...

一个小型图书馆管理系统需完成以下工作借书还书以下代码,仅供参考。 使用的是c++类对象做的。 //图书馆图书管理程序-完整版 //本程序提供了多次性入库图书的存储、反复借书还书的功能,一旦退出,库存书信息将会丢失 #include...

图书借阅管理系统制作:(1) 图书信息管理。录入新书、删除旧书和查询图书信息。在删除旧书时,必须应先确定此书是未借出的。在查询图书信息时,可随时查询书库中现有书籍的类型、索书号、作者信息等。...

用C语言编一个简单的图书管理系统包括借阅查询还书三部分学展开全部#include#include struct sale/*商品名的定义*/ {int number; char name[20]; float price; long count; long time; long date;}; /*各个函数*/ void input(struct s...

图书信息管理系统设计 c语言高级语言程序设计(2)课程设计 一程序设计说明书【设计题目】图书馆借阅管理【问题描述】图书馆,适合用C++面向对象的功能来描述。图书馆管理系统分为借书、还书、图书管理和读...

速求CC制作一个图书馆管理系统其功能包括增加删除修dat&quot: coutSetConsoleTextAttribute(hCon; exit (1);{int i.booknum>所有图书统计&gt:in).bookcreat } i=FindRecord(b; } n--;/ if(;endl; case 3; 8--灰 9--亮蓝 10-...

人力资源管理系统开发费用呵呵,软件开发是无止境的,主要看想达到哪些功能,然后才能确定开发同期,最后才能预算费用。而且开发的方式不样,价格也有很大的出入。 HR系统虽然说的简单,但是内核就不简单了,像其...

汽修店用的电脑管理系统有哪些1、配件管理:包括:配件销售,采购管理,库存查2113询,库存盘点,出库查询,内部抄领料等; 2、报表统计:包括:业务报表,提成统计,库5261存统计,坏账统计,项目类别统计等; 3、客户管理:包括:客户投...

汽车售后管理系统都有哪些智百盛的汽车4s店售后客户管理系统好用在哪里呢?本人亲测过后总结出以下几个优点: 1、客户管理维护到位: 在智百盛汽车4s店售后客户管理系统,可以很清楚管理: 1)今天所增加的新客...