2022年C方案设计书学生信息管理系统.docx
精品学习资源封面欢迎下载精品学习资源作者: PanHongliang仅供个人学习用C+设计同学信息治理系统 学号: 2021144204姓名:张琼自评成果: 15 成果: 工程名称简介:欢迎下载精品学习资源同学信息:学号、姓名、本学期4门课程的成果; 实现功能:同学信息的录入、修改、查询、删除;1选题意义依据依据所学 C+语言学问,设计一个简洁的同学信息治理系统,充分运用所学学问,熟识面对对象的程序设计的用法,基本实现对学号成果等信息的输入治理以及修改查询删除等操作,有用性比较强,也有较高的实际应用价值和意义,所以设计该问题; 2系统功能设计与分析(功能模块说明)该系统设计主要包括两大模块,一部分是对同学信息的输入修改删除以及查询,另一部分是对于输入的同学成果进行的相同操作, 均用类的方式进行实现;3. 涉及的主要学问点说明类及其他 C+常用学问;4. 创新性说明将面对对象的程序设计 C+学问进行重新的整合和运用, 将同学信息加以治理,简洁易懂,便于实现;5. 源代码程序设计如下#include <iostream> #include <cstring>using namespace std;欢迎下载精品学习资源int no;char name30;int math,computer,english, chinese ;stu100=0,"0",0,0,0,0;void setup;int lookforint m;void edit;void Delete;int mainloop:cout<<"*n";cout<<" cout<<"1 -请选择服务录入同学信息n"n";cout<<"2 -查找同学信息n";cout<<"3 -修改同学信息n";cout<<"4 -删除同学信息n";cout<<"0 -退出n";cout<<"*n";int menu,num,tem ;欢迎下载精品学习资源system"cls";switch menucase 1:setup;system"cls";goto loop;break;case 2:cout<<"请输入您想查询的学号 :" ;cin>>num ;tem=lookfornum;if tem.=-1cout<<"学号姓名运算机成果数学成果英语成果语文成果 n" ;cout<<stutem.no<<""<<stutem.name<<" "<<stutem.computer<<""欢迎下载精品学习资源"<<stutem.chinese<<endl;elsecout<<"对不起, 该学号不存在 .n" ;system"pause";system"cls";goto loop; break;case 3:edit;system"cls";goto loop;break;case 4:Delete;system"cls";goto loop;欢迎下载精品学习资源case 5:cout<<"感谢使用 .n" ;break;default:cout<<"错误的请求 .n" ;system"cls";goto loop;break;return 0;void setupchar str;forint i=0;i<100 ;i+欢迎下载精品学习资源成果、语文成果: n" ;cin>>stui.no>>stui.name>>stui.computer>>stui.math>>stui.english>>stui.chinese;cout<<"连续( y/nn";cin>>str;ifstr='n' break;int lookforint mforint i=0;i<100 ;i+ifm=stui.no return i;return -1;void edit欢迎下载精品学习资源int s1,s2,s3,s4;int t,m,temp;cout<<" 请选择学号: "<<endl ;cin>>m ;temp=lookform;ifm.=-1cout<<"*n";cout<<" cout<<"1 -请选择:n"修改姓名n";cout<<"2 -修改运算机成果n";cout<<"3 -修改数学成果n";cout<<"4 -修改英语成果n";cout<<"5 -修改语文成果n";cout<<"*n";cin>>t;switch tcase 1:cout<<"请输入同学的名字 n" ;cin>>ch;欢迎下载精品学习资源break;case 2:cout<<"请输入同学新的运算机成果 n" ;cin>>s1;stutemp.computer=s1;break;case 3:cout<<"请输入同学新的数学成果n";cin>>s2;stutemp.math=s2;break;case 4:cout<<"请输入同学新的英语成果n";cin>>s3;stutemp.english=s3;break;case 5:cout<<"请输入同学新的语文成果 n" ;cin>>s4;stutemp.chinese=s4;break;欢迎下载精品学习资源elsecout<<"此学号不存在 .n" ;void Deleteint temp,m;cout<<" 请选择学号: "<<endl ;cin>>m ;temp=lookform;ifm.=-1stutemp.no=0;stutemp.name0='0';stutemp.computer=0;stutemp.math=0;stutemp.english=0;stutemp.chinese=0;elsecout<<"此学号不存在 .n" ;欢迎下载精品学习资源6. 运行结果与分析经测试该程序基本可实现所需功能;版权申明本文部分内容,包括文字、图片、以及设计等在网上搜集整理;版权为潘宏亮个人全部This article includes some parts, including text, pictures, and design. Copyright is Pan Hongliang's personal ownership.用户可将本文的内容或服务用于个人学习、争论或观看,以及其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关法律的规定,不得侵害本网站及相关权益人的合法权益;除此以 外,将本文任何内容或服务用于其他用途时,须征得本人及相关权益人的书面许可,并支付酬劳;Users may use the contents or services of this article for personal study, research or appreciation, and other non-commercial or non-profit purposes, but at the same time, they shall abide by the provisions of copyright law and other relevant laws, and shall not infringe upon欢迎下载精品学习资源the legitimate rights of this website and its relevant obligees. In addition, when any content or service of this article is used for other purposes, written permission and remuneration shall be obtained from the person concerned and the relevant obligee.转载或引用本文内容必需是以新闻性或资料性公共免费信息为使用目的的合理、善意引用,不得对本文内容原意进行曲解、修 改,并自负版权等法律责任;Reproduction or quotation of the content of this article must be reasonable and good-faith citation for the use of news or informative public free information. It shall not misinterpret or modify the original intention of the content of this article, and shall bear legal liability such as copyright.欢迎下载