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

福建省建设厅官方网站wordpress登陆后段后端

福建省建设厅官方网站,wordpress登陆后段后端,网站需求分析有哪些内容,网盘网页版登录入口链表A#xff0c;每个节点存放一个新的链表B1#xff0c;B2,B3,B4,B5的头结点。 场景#xff1a;一个年级#xff0c;相当链表A 该年级5个班#xff0c;每个班5个人#xff0c;相当于链表B1–B5 做一个学生成绩管理系统 学生成绩有语文 数学 英语 功能#xff1a; 录入成…链表A每个节点存放一个新的链表B1B2,B3,B4,B5的头结点。 场景一个年级相当链表A 该年级5个班每个班5个人相当于链表B1–B5 做一个学生成绩管理系统 学生成绩有语文 数学 英语 功能 录入成绩 找最三科总分的最高分 最低分 算出平均分 #includestdio.h #includestdlib.h #includestring.h struct people {char* name;int lesson;int number;int math;int chinese;int english;int all;struct people* next; };struct class {int class;struct people* firstpeople;struct class* next; };struct class* insertfromclassbehind(struct class* classhead,struct class* classnewnode) {struct class* pNULL;pclasshead;if(classheadNULL){classheadclassnewnode;return classhead;}struct people* insertfrompeoplebefore(struct people* peoplehead,struct people* peoplenewnode) {if(peopleheadNULL){peopleheadpeoplenewnode;}else{peoplenewnode-nextpeoplehead;peopleheadpeoplenewnode;}return peoplehead; }void linkPrintf(struct class* head) {struct people* pNULL;if(headNULL){printf(打印失败链表为空\n);}while(head!NULL){phead-firstpeople;while(p!NULL){printf(姓名:%s\n,p-name);printf(班级:%d\n,p-lesson);printf(学号:%d\n,p-number);printf(数学:%d\n,p-math);printf(语文:%d\n,p-chinese);printf(英语:%d\n,p-english);printf(---------------------------------------------------------------------------------------------------\n);pp-next;}headhead-next;} }struct class* creatnewlink(struct class* classhead,struct people* peoplehead,int classall) {struct class* classnewnodeNULL;struct people* peoplenewnodeNULL;while(classall){int number;classnewnode(struct class*)malloc(sizeof(struct class));classnewnode-nextNULL;classnewnode-firstpeopleNULL;printf(请输入班级:\n);scanf(%d,classnewnode-class);printf(请输入该班的人数:\n);scanf(%d,number);while(number){peoplenewnode(struct people*)malloc(sizeof(struct people));peoplenewnode-nextNULL;peoplenewnode-name(char*)malloc(128);memset(peoplenewnode-name,\0,128);peoplenewnode-lessonclassnewnode-class;printf(请输入姓名:\n);scanf(%s,peoplenewnode-name); // printf(输入的是:%s\n,peoplenewnode-name);printf(请输入学号:\n);scanf(%d,peoplenewnode-number);printf(请输入数学成绩:\n);scanf(%d,peoplenewnode-math);printf(请输入语文成绩:\n);scanf(%d,peoplenewnode-chinese);printf(请输入英语成绩:\n);scanf(%d,peoplenewnode-english);peoplenewnode-allpeoplenewnode-englishpeoplenewnode-mathpeoplenewnode-chinese;peopleheadinsertfrompeoplebefore(peoplehead,peoplenewnode);number--;}classnewnode-firstpeoplepeoplehead;peopleheadNULL;//printf(****************************);classheadinsertfromclassbehind(classhead,classnewnode);classall--;}return classhead; }void findmaxall(struct class*head) {struct class* phead;struct people* p2p-firstpeople;struct people* maxNULL;maxp2;if(pNULL){printf(参数不能为空!\n);}while(p!NULL){p2p-firstpeople;while(p2!NULL){if(max-allp2-all){maxp2;}p2p2-next;}pp-next;}printf(---------------------------------------------------------------------------------------------------\n);printf(总分最高为:%d,姓名:%s,班级:%d,学号:%d\n,max-all,max-name,max-lesson,max-number);printf(---------------------------------------------------------------------------------------------------\n); }void findminall(struct class*head) {struct class* phead;struct people* p2p-firstpeople;struct people* minNULL;minp2;if(pNULL){printf(参数不能为空!\n);}while(p!NULL){p2p-firstpeople;while(p2!NULL){if(min-allp2-all){minp2;}p2p2-next;}pp-next;}printf(总分最低为:%d,姓名:%s,班级:%d,学号:%d\n,min-all,min-name,min-lesson,min-number);printf(---------------------------------------------------------------------------------------------------\n); }void findaverage(struct class* head) {int mathall,chineseall,englishall,peopleall;mathallchineseallenglishallpeopleall0;struct people* p;if(headNULL){printf(链表为空错误\n);}while(head!NULL){phead-firstpeople;while(p!NULL){mathallp-mathmathall;chineseallp-chinesechineseall;englishallp-englishenglishall;peopleall;pp-next;}headhead-next;}//printf(语文:%d,数学:%d,英语:%d\n,chineseall,mathall,englishall);printf(语文平均分:%f\n,(float)chineseall/peopleall);printf(数学平均分:%f\n,(float)mathall/peopleall);printf(英语平均分:%f\n,(float)englishall/peopleall);printf(---------------------------------------------------------------------------------------------------\n); } int main() {struct class* classheadNULL;struct people* peopleheadNULL;int classall;printf(请输入班级总数:\n);scanf(%d,classall);classheadcreatnewlink(classhead,peoplehead,classall);findmaxall(classhead);findminall(classhead);findaverage(classhead);//linkPrintf(classhead);return 0; }
http://www.zqtcl.cn/news/30025/

相关文章:

  • 网站建设的文案宁波网站优化建站公司
  • 做设计必看十大网站虚拟主机评测
  • 成都哪家做网站比较好自己如何建立网站
  • 做书的封面网站怎么找项目
  • 网站后台如何上传图片外贸响应式网站设计
  • 建站节高端品牌衣服有哪些牌子
  • 网站设计论坛网址搜索器
  • 做网站线稿软件有哪些湛江人才网
  • 交互网站图通信建设网站
  • 网站建设丨金手指排名15网站适配移动端和PC端
  • 大庆网站开发汽车网页
  • 建立网站需要哪些东西网站建设设备
  • 做一小说网站要花多钱山东建设厅网站是什么
  • 北京燕化工程建设有限公司网站福田欧辉氢燃料电池客车
  • 如何分析一个网站的用户网站统计代码怎么添加
  • 池州商城网站开发做网站需要备案么
  • 十度公司做网站怎么样绍兴建设网站
  • 网站统计热力图展览展示设计有限公司
  • 网站图片有什么要求房地产门户网站建设
  • 南昌市 做网站的公司嘉兴网页设计
  • 个人电子邮件注册网站申请长沙手机网站首页设计公司
  • 本溪北京网站建设alisql wordpress
  • 深圳网站建设制作优化苏州网页制作招聘
  • 最专业的企业营销型网站建设公司南皮做网站
  • 网站设计顺德青岛网站建设机构
  • 门户网站的基本特征a信息与服务网页制作简明教程
  • 广州传业建设有限公司网站网站开发成本核算及账务处理
  • 内蒙古高等级公路建设开发有限责任公司网站青白江建设局网站
  • 松江 网站建设公司手机上装修设计软件
  • 网站开发网络公六安钢铁吧