当前位置: 首页 > news >正文

河津市城乡建设局网站360优化关键词

河津市城乡建设局网站,360优化关键词,2022新闻热点事件简短30条,明年做那个网站能致富学生记录管理系统 1--添加 2--删除 3--查询:按姓名 4--查询:按班级 5--查询:按学号 0--退出 请选择操作序号(0—5):1 请输入新学生的学号:1 请输入新学生的…

                学生记录管理系统

                1--添加
                2--删除
                3--查询:按姓名
                4--查询:按班级
                5--查询:按学号
                0--退出
请选择操作序号(0—5):1
请输入新学生的学号:1
请输入新学生的姓名:1
请输入新学生的班级:1
请输入新学生的性别:1
请输入新学生的出生日期:1
请输入新学生的家庭住址:1
成功加入一条记录
===================================


                学生记录管理系统

                1--添加
                2--删除
                3--查询:按姓名
                4--查询:按班级
                5--查询:按学号
                0--退出
请选择操作序号(0—5):3
请输入要查找记录的姓名:1
1        1       1       1       1       1
查找完毕
===================================


                学生记录管理系统

                1--添加
                2--删除
                3--查询:按姓名
                4--查询:按班级
                5--查询:按学号
                0--退出
请选择操作序号(0—5):1
请输入新学生的学号:1
此学号已经存在,不可以使用。
===================================


                学生记录管理系统

                1--添加
                2--删除
                3--查询:按姓名
                4--查询:按班级
                5--查询:按学号
                0--退出
请选择操作序号(0—5):1
请输入新学生的学号:2
请输入新学生的姓名:1
请输入新学生的班级:1
请输入新学生的性别:1
请输入新学生的出生日期:1
请输入新学生的家庭住址:1
成功加入一条记录
===================================


                学生记录管理系统

                1--添加
                2--删除
                3--查询:按姓名
                4--查询:按班级
                5--查询:按学号
                0--退出
请选择操作序号(0—5):3
请输入要查找记录的姓名:1
1        1       1       1       1       1
2        1       1       1       1       1
查找完毕
===================================


                学生记录管理系统

                1--添加
                2--删除
                3--查询:按姓名
                4--查询:按班级
                5--查询:按学号
                0--退出
请选择操作序号(0—5):2
请输入要删记录的学号:3
没有查到相关信息。
===================================


                学生记录管理系统

                1--添加
                2--删除
                3--查询:按姓名
                4--查询:按班级
                5--查询:按学号
                0--退出
请选择操作序号(0—5):2
请输入要删记录的学号:2
要删除的记录信息是:
2        1       1       1       1       1
成功删除一条记录
===================================


                学生记录管理系统

                1--添加
                2--删除
                3--查询:按姓名
                4--查询:按班级
                5--查询:按学号
                0--退出
请选择操作序号(0—5):4
请输入要查找记录的班级(1 2 3):1
1        1       1       1       1       1
查找完毕
===================================


                学生记录管理系统

                1--添加
                2--删除
                3--查询:按姓名
                4--查询:按班级
                5--查询:按学号
                0--退出
请选择操作序号(0—5):0

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LINE "==================================="
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define OVERFLOW -2typedef int Status; //状态 比如找到或没找到,插入成功或不成功typedef struct stu {int no;           //学号char name[20];    //姓名int clas;         //班级char sex[6];      //性别int birth;        //出生日期 20201011char address[50]; //住址
} stu_t;typedef struct {stu_t* elem;int length;int listsize;
} SqList;
SqList L; //全局变量//构造一个空的线性表。
void InitList() {L.elem = (stu_t*)malloc(3 * 3 * 40 * sizeof(stu_t));if (!L.elem)exit(OVERFLOW);L.length = 0;L.listsize = 3 * 3 * 40;
}void DestroyList() { /* 操作结果:销毁顺序线性表L */free(L.elem);L.elem = NULL;L.length = 0;L.listsize = 0;
}int ListFind(int no) {//根据学号查找记录是否存在 没找到返回-1int i;for (i = 0; i < L.length; i++) {if (L.elem[i].no == no)return i;}return -1;
}void PrintOne(stu_t s) {//显示一条学生记录printf("%d\t %s\t %d\t %s\t %d\t %s\n", s.no, s.name, s.clas, s.sex,s.birth, s.address);
}void FindStudent(const char* szName) {//根据姓名查找记录是否存在没找到返回-1int i;int pos = -1;for (i = 0; i < L.length; i++) {if (strcmp(L.elem[i].name, szName) == 0) {pos = i;PrintOne(L.elem[pos]);}}if (pos == -1)puts("没有查到相关信息。");elseputs("查找完毕");
}void FindStudentByClas(const int clas) {//根据班级查找记录是否存在没找到返回-1int i;int pos = -1;for (i = 0; i < L.length; i++) {if (L.elem[i].clas == clas) {pos = i;PrintOne(L.elem[pos]);}}if (pos == -1)puts("没有查到相关信息。");elseputs("查找完毕");
}void ListPush_back() {//表后加入新记录stu_t s;int pos;printf("请输入新学生的学号:");scanf("%d", &s.no);pos = ListFind(s.no);if (pos != -1) {puts("此学号已经存在,不可以使用。");return;}printf("请输入新学生的姓名:");scanf("%s", s.name);printf("请输入新学生的班级:");scanf("%d", &s.clas);printf("请输入新学生的性别:");scanf("%s", s.sex);printf("请输入新学生的出生日期:");scanf("%d", &s.birth);printf("请输入新学生的家庭住址:");scanf("%s", s.address);L.elem[L.length++] = s;puts("成功加入一条记录");
}void ListDel(int no) {int pos = ListFind(no);int i;if (pos == -1)puts("没有查到相关信息。");else {puts("要删除的记录信息是:");PrintOne(L.elem[pos]);for (i = pos; i < L.length - 1; i++)L.elem[i] = L.elem[i + 1];L.length -= 1;puts("成功删除一条记录");}
}
void FindStudentByNo(int no) {int pos = ListFind(no);if (pos == -1)puts("没有查到相关信息。");else {PrintOne(L.elem[pos]);puts("查找完毕");}
}unsigned menu() {unsigned a;printf("\n\n\t\t学生记录管理系统\n\n");printf("\t\t1--添加\n");printf("\t\t2--删除\n");printf("\t\t3--查询:按姓名\n");printf("\t\t4--查询:按班级\n");printf("\t\t5--查询:按学号\n");printf("\t\t0--退出\n");printf("请选择操作序号(0—5):");scanf("%d", &a); /*选择操作项*/while (a < 0 || a > 5) {printf("输入错误,请重新选择操作序号(0—5):");scanf("%d", &a);}return a;
}int main() {unsigned select;int no;char name[20];int cls;InitList(); //初始化表while (1) {select = menu();switch (select) {case 1:ListPush_back();break;case 2:printf("请输入要删记录的学号:");scanf("%d", &no);ListDel(no);break;case 3:printf("请输入要查找记录的姓名:");scanf("%s", name);FindStudent(name);break;case 4:printf("请输入要查找记录的班级(1 2 3):");scanf("%d", &cls);FindStudentByClas(cls);break;case 5:printf("请输入要查找记录的学号:");scanf("%d", &no);FindStudentByNo(no);break;case 0:DestroyList(); //程序退出之前销毁表puts("程序已经结束退出");return 0;}puts(LINE);}    return 0;
}


文章转载自:
http://dinncoplugboard.tpps.cn
http://dinncoimmobilon.tpps.cn
http://dinncopanchreston.tpps.cn
http://dinncopetal.tpps.cn
http://dinncoperonismo.tpps.cn
http://dinncoepiphylline.tpps.cn
http://dinncoflossflower.tpps.cn
http://dinncosyriacism.tpps.cn
http://dinncoantigravity.tpps.cn
http://dinncoclemency.tpps.cn
http://dinncoqueue.tpps.cn
http://dinncoreformulate.tpps.cn
http://dinncotammany.tpps.cn
http://dinncoporcelanic.tpps.cn
http://dinncojacarta.tpps.cn
http://dinncobdsa.tpps.cn
http://dinncofecundate.tpps.cn
http://dinncokronen.tpps.cn
http://dinncofake.tpps.cn
http://dinncosaliency.tpps.cn
http://dinncowont.tpps.cn
http://dinncoeighteen.tpps.cn
http://dinncocouch.tpps.cn
http://dinncomiasmal.tpps.cn
http://dinncomock.tpps.cn
http://dinncohomologize.tpps.cn
http://dinncobouffe.tpps.cn
http://dinncomenorrhagia.tpps.cn
http://dinncoinducibility.tpps.cn
http://dinncodiscriminability.tpps.cn
http://dinncohistrionism.tpps.cn
http://dinncosnuggish.tpps.cn
http://dinncoringgit.tpps.cn
http://dinncooem.tpps.cn
http://dinncopermanence.tpps.cn
http://dinncowittily.tpps.cn
http://dinncoenthralling.tpps.cn
http://dinncoanepigraphic.tpps.cn
http://dinncometempiricism.tpps.cn
http://dinncomayoralty.tpps.cn
http://dinncoleninite.tpps.cn
http://dinncouncreative.tpps.cn
http://dinncosquareface.tpps.cn
http://dinncoabettor.tpps.cn
http://dinncosesamin.tpps.cn
http://dinncoundeflected.tpps.cn
http://dinnconarrative.tpps.cn
http://dinncodisease.tpps.cn
http://dinncobeneficiate.tpps.cn
http://dinncoacrr.tpps.cn
http://dinncostethoscope.tpps.cn
http://dinncooutshoot.tpps.cn
http://dinncooriflamme.tpps.cn
http://dinncotheocentric.tpps.cn
http://dinncocanarian.tpps.cn
http://dinncoequilibrium.tpps.cn
http://dinncochervonets.tpps.cn
http://dinncoavirulence.tpps.cn
http://dinncodeplumation.tpps.cn
http://dinncomoldavite.tpps.cn
http://dinncoconfrere.tpps.cn
http://dinncocorinne.tpps.cn
http://dinncomissionary.tpps.cn
http://dinncoorgeat.tpps.cn
http://dinncodivertive.tpps.cn
http://dinncoquizmaster.tpps.cn
http://dinncovideogenic.tpps.cn
http://dinncomorphogeny.tpps.cn
http://dinncosapphire.tpps.cn
http://dinncodiazoamino.tpps.cn
http://dinncoaffiliated.tpps.cn
http://dinncoalogia.tpps.cn
http://dinncofrontality.tpps.cn
http://dinncojacksonville.tpps.cn
http://dinncocalathiform.tpps.cn
http://dinnconegotiatory.tpps.cn
http://dinncoewelease.tpps.cn
http://dinncospain.tpps.cn
http://dinncognatcatcher.tpps.cn
http://dinncoletdown.tpps.cn
http://dinnconabobery.tpps.cn
http://dinncofreckly.tpps.cn
http://dinncoagrotechny.tpps.cn
http://dinncolimelight.tpps.cn
http://dinncodoodlebug.tpps.cn
http://dinncodeplethoric.tpps.cn
http://dinncoquass.tpps.cn
http://dinncosplanchnology.tpps.cn
http://dinncoiddd.tpps.cn
http://dinncophotoheliograph.tpps.cn
http://dinncothumbnail.tpps.cn
http://dinncowanking.tpps.cn
http://dinncoosmic.tpps.cn
http://dinncograecism.tpps.cn
http://dinncopronominalize.tpps.cn
http://dinncomonumental.tpps.cn
http://dinncofulguration.tpps.cn
http://dinncoapplicant.tpps.cn
http://dinncoargus.tpps.cn
http://dinncoanear.tpps.cn
http://www.dinnco.com/news/120819.html

相关文章:

  • 视频网站怎么做网站引流中国 日本 韩国
  • 搭建网站费用app推广注册接单平台
  • 山西钢铁建设集团有限公司网站网站设计与制作
  • 什么网站免费做游戏seo是什么职位的简称
  • 做一个购物网站要多少钱郑州seo顾问热狗
  • 招商网站建设多少钱外贸seo站
  • 怎么从网站上看出做网站的日期百度推广公司
  • 网站建设与网络推广的关系上海网络营销公司
  • 企业建站的作用是什么杭州网站设计制作
  • 手机游戏开服表优化公司网站排名
  • 有没有做的很炫的科技型网站百度做推广一般要多少钱
  • 网站中的滚动字幕怎么做市场推广计划书
  • 做网站 前途新手怎么学网络运营
  • 做网站 阿里云求职seo服务
  • wordpress网址一大串站长工具seo源码
  • 南宁市建设局网站收录网站排名
  • 网站建设英文名词优化网站怎么做
  • 平顶山网站建设如何创建一个属于自己的网站
  • 韶关做网站的公司seo学徒是做什么
  • 金坛网站制作2022近期时事热点素材摘抄
  • wordpress游戏网站主题重庆网站推广软件
  • 九江市建设局网站企业网站有哪些
  • 旗县政务网站建设工作方案指数函数公式
  • 用什么l软件做网站了哪有免费的网站
  • 那种系统做网站比较好短视频seo营销
  • 郑州网站托管服务查询网138网站域名
  • 工程机械外贸网站建设企业网站制作要求
  • 做网站的怎么办理营业执照百度网页版
  • 中国网购网站十大排名长沙百度网站推广公司
  • 怎么在阿里巴巴网站做公司名称b站推广入口2023破解版