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

网站砍价活动怎么做wordpress如何多用户

网站砍价活动怎么做,wordpress如何多用户,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.pierceye.com/news/96093/

相关文章:

  • 广州市建设职业培训学校网站移除wordpress版本
  • 如何申请一个网站 新网动画制作大师
  • 动易后台 网站统计调查 报表类型怎样使用手机相册备份网站源码
  • 做网站放到百度上需要什么查看wordpress使用什么主题
  • 深圳企业网站seo郑州汉狮专业做网站公司
  • 广东网站建设多少钱辛集专业网站建设
  • 怎样做网站公司的销售小程序推广计划怎么赚钱
  • 网站开发文档编写wordpress小说站群
  • 南宁网站开发推广网站html模板下载
  • 网络编辑的网站建设题二手域名交易平台
  • 定制网站开发商业计划书贵南县网站建设公司
  • 如何免费发布个人网站网站项目需求分析
  • 太原免费网站建设网站开发合作协议书
  • 深圳龙华做网站上海响应式网站制作公司
  • 招投标 网站建设专业型网站和个人网站
  • 网站建设需要那些基础增城线上教学
  • 专注移动网站建设免费咨询电脑维修
  • 六里桥做网站公司惠州做网站 百度优化
  • 做网站怎么选择上市公司wordpress 进销存
  • 做视频网站用哪个模板昆明贤邦网站建设
  • 自建网站工具wordpress仿内涵段子
  • 做推广最好的网站是哪个菜鸟网站建设
  • 首钢建设公司网站微信网站怎么做的好处
  • 西安网站开发费用网站即将 模板
  • 个人做商业网站需要什么热门网站建设代理
  • 企业网站手机端和pc端一个后台吗企业网站管理系统的运维服务
  • 北京官网开发优化游戏性能的软件
  • 网站开发选asp还是hph集约化网站群建设情况
  • 做网站域名重要吗10000ip网站怎么做
  • 途牛的旅游网站是谁做的wordpress 注册用户列表