欢迎来到天天文库
浏览记录
ID:42118283
大小:727.76 KB
页数:40页
时间:2019-09-08
《通用学生信息管理系统C#结业报告》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、通用学生信息管理系统C#结业报告院系:计算机科学与工程班级:140402姓名:周琳学号:20141180一、问题提出:1.创建相应的成员变量保存学生基本信息。2.创建相应属性和索引以实现对成员变量访问的封装。3•创建相应的方法以实现对学生基本信息的管理。4.创建相应的方法以实现对学生成绩的管理。5.派生出小学生,屮学生,大学生等子类。二、问题分析:1、添加基类Student,定义私冇成员变量姓名,性别,号,民族,住址,英语,数学,语文等学生的基本信息并创建相应的属性实现对成员变量访问的封装。2、分别定义派生类Pupil,CollegeStudenr,Mi
2、ddleschoolstudent,并使用base关键字调用基类构造函数。3、添加Option类实现对学生信息进行的一•系列操作。4、添加Manager类实现管理用户登陆。三、程序代码:Student.cs:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem3、e;publicstringStudentType{get{returnstudentType;}set{studentType=value;}}privatestringstudentName;publicstringStudentNameget{returnstudentName;}set{studentName=value;}privatestringstudentSex;publicstringStudentSex{get{returnstudentSex;}set{studentSex=value;}}privatestringstudentN4、umber;publicstringStudentNumber{get{returnstudentNumber;}set{studentNumber=value;}}privatestringstudentNation;publicstringStudentNation{get{returnstudentNation;}set{studentNation二value;}}privatestringstudentAddress;publicstringStudentAddress{get{returnstudentAddress;}set{studentA5、ddress=value;}}privatestringenglishScore;publicstringEnglishScore{get{returnenglishScore;}set{englishScore=value;}}privatestringmathScore;publicstringMathScore{get{returnmathScore;}set{mathScore=value;}}privatestringchineseScore;publicstringChineseScoreget{returnchineseScore;}set6、{chineseScore=value;}publicStudent(stringtype,stringname^stringsex^stringnumber^stringnation,stringaddressestringenglish^stringmath,stringChinese)this•studentType=type;this•studentName=name;this•studentSex=sex;this•studentNumbeznumber;this.studentNation=nation;this.studentAddress7、=address;this8、umber);Console.WriteLine(n住址:"+studentAd
3、e;publicstringStudentType{get{returnstudentType;}set{studentType=value;}}privatestringstudentName;publicstringStudentNameget{returnstudentName;}set{studentName=value;}privatestringstudentSex;publicstringStudentSex{get{returnstudentSex;}set{studentSex=value;}}privatestringstudentN
4、umber;publicstringStudentNumber{get{returnstudentNumber;}set{studentNumber=value;}}privatestringstudentNation;publicstringStudentNation{get{returnstudentNation;}set{studentNation二value;}}privatestringstudentAddress;publicstringStudentAddress{get{returnstudentAddress;}set{studentA
5、ddress=value;}}privatestringenglishScore;publicstringEnglishScore{get{returnenglishScore;}set{englishScore=value;}}privatestringmathScore;publicstringMathScore{get{returnmathScore;}set{mathScore=value;}}privatestringchineseScore;publicstringChineseScoreget{returnchineseScore;}set
6、{chineseScore=value;}publicStudent(stringtype,stringname^stringsex^stringnumber^stringnation,stringaddressestringenglish^stringmath,stringChinese)this•studentType=type;this•studentName=name;this•studentSex=sex;this•studentNumbeznumber;this.studentNation=nation;this.studentAddress
7、=address;this8、umber);Console.WriteLine(n住址:"+studentAd
8、umber);Console.WriteLine(n住址:"+studentAd
此文档下载收益归作者所有