资源描述:
《object oriented design (c ) - student information management system(面向对象课程设计(c )-学生信息管理系统)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
Objectorienteddesign(C++)-studentinformationmanagementsystem(面向对象课程设计(C++)-学生信息管理系统)ThisarticleiscontributedbyvoechuchuDOCdocumentsmayexperiencepoorbrowsingontheWAPside.ItisrecommendedthatyoufirstselectTXT,ordownloadthesourcefiletothelocalview.DalianInstituteofscienceandtechnologyCoursedesignofobjectorientedprogrammingStudentcourseselectioninformationmanagementsystemStudentnameLuoChu08professionalclasssoftwareengineering08-3TutorRuiJieLiuTitlelecturertheunittowhichonebelongs Departmentofsoftwareengineering,Departmentofsoftwareengineering,Departmentofsoftwareengineering,Departmentofinformationscience,DepartmentofInformationScienceHeadofTeachingDepartmentLijuanCompletiondate,September9,2011CoursedesignreportNumber0801030328nameLuoChuProfessionalclassscore08softwareengineering08-3remarksAssessmentitems1normalworkingattitudeanddisciplinesituation(10)tomasterthebasictheoryandkeyknowledge,basicskillsandreadingreferencelevel(10points)theintegrateduseoftheabilitytoworkindependently,learntoanalyzeandsolvethequestionabilityandpracticalabilitytoimprovethedegreeofcompletion(20points)andthelevelofcurriculumdesignspecificationsandsoftware(standardgroup,divisionoflabor,cleanandclear,complete,clearthinking,workloadandpracticaloperationandinnovativenarrative)(60) TwoThreeFourTotalMarkComprehensiveevaluation:instructionsignedbyinstructor:instructionsignedbyinstructor:(excellent,good,medium,pass,fail)September9,2011Objectorientedprogramming(A)coursedesigntaskbookCurriculumdesigntasksandrequirements:curriculumdesigntasksandrequirements:Task:forasmallinformationmanagementsystemoranumberofcomprehensivedesigntopics,selectasoftwaredevelopmentmodel,completefromtheneedsanalysis,systemdesign,systemimplementation,softwaretestingprocess.Requirements:(1)accordingtothegeneralprinciplesofsoftwaresystemdevelopment,completethefunctionofthecorrespondingsystemdesign,completedthemainfunctionmodulesoftheprogramandtestthetraininggivencodetheresultsandthecorrespondingdesigndocument.Theycanbegrouped,butallstudentsmustgothroughthewholedevelopmentprocessofthesystem,soasto deepentheunderstandingofthewholeprocessofsystemdevelopment.(2)submitcurriculumdesignreport.(3)index:requiredtocompletethecoursedesignreportmorethan3000words(abouttwentypages);completethedesignofthesubject,thedesigntopicstatement,linenumber,andinthe200linestatementabove.Two,workload2weeks(10businessdays)Three,planFirstworkingdays:findrelevantinformation,books,readsampledocuments,andchoosetopics.Secondworkingdays-fourthworkingdays:designprogramstructure,modulediagram.Fifthworkingdays-ninthworkingdays:completethecodingoftheprogram,anddebugandtestityourself.Towriteacoursedesignreport.Tenthworkingdays:submitthecurriculumdesignreport,checktheeffectofthesoftwaretestbytheteacher,checkthecurriculumdesignreport,andgivethestudent'sresult.SignatureofInstructor:August29,2011OneCatalogTitle:studentcourseinformationmanagementsystem......21systemrequirementsanalysis......21.1introduction...... 21.2systemrequirementsanalysisphaseobjectivesandtasks......22outlinedesign......22.1outlinedesignphaseoverallstructuredesign......22.2summaryofdesignphaseresults......43detaileddesign......43.1interfacedesign......43.2functionmodulecallingrelation......64encoding......74.1headerfilecode(xk.h)......75testresultandoperationresult......85.1createsystemtestdata......85.2systemoperationinterface......9references......12appendixcode......ThirteenOneTitle:studentcourseinformationmanagementsystem1systemrequirementsanalysis1.1introductionintwenty-firstCentury,withthecontinuousmaturityofcomputertechnology,itbroughttherapiddevelopmentofinformationtechnology.Thedevelopmentofinformationtechnologyhasgreatlypromotedtheprocessofsocialinformatization.Intheincreasinglylargefieldofinformationmanagement,informationmanagementautomationhaschangedthetraditionaldocumentmanagementmodedirectly,andgreatlyimprovedtheworkefficiencyandmanagementlevel.Inviewofthelargenumberofstudents,staffandstudentsintheinstitutionsofhigherlearningandthedailyhandlingofinformationanddata,theschoolinformationmanagementdepartmentusuallyfindsitdifficulttomanagethemefficiently.Asforthestudents'choiceofcoursesinCollegesanduniversities,asthenumberofstudentsinInstitutionsofhigherlearningisdifferentandthemajorsaredifferent,the teachingplanarrangedbytheschoolvariesfrompersontoperson.Thisisundoubtedlyahugeandcomplexjobfortheacademicaffairsteacherwhomanagesthestudentcourse.Notonlyshouldweconsidertheteachingplanarrangementofaschoolasawhole,butalsocoordinatetheteachingtasksoftheteachersofdifferentmajors.Weshouldalsoconsiderthespeciallearningofsomestudents.Inordertosolvetheproblemoftheschoolcurriculummanagement,improveteacherinformationmanagementefficiency,andinordertofacilitatestudentstobetterandmoreconvenienttochoosetheirowncourses,checktheircoursesandlearninginformation;makeamoresmoothandtimelygraspofteachinginformationoftheteacher'steachingwork.Thesystemaccordingtothegeneralcollegestudentsinelectivecourseofthedatabasemanagementapproach,combinedwithpractice,designedforstudents,teachersandadministratorsofthreemodules,accordingtodifferentsystempermissions,wereoperatingonthesystem,convenientforstudentsandteacherstoviewinformationonthecurriculumatthesametime,alsogreatlyreducedtheadministratortheinformationmanagementworkload,improvesystemefficiency.1.2systemrequirementsanalysisphaseobjectivesandtasks1)throughthemanagementofcollegestudentselectivecoursemanagementmodelandstepstodesigntheoverallstructureofthesystemandthemainfunctionalmodules.2)tounderstandtheprogrammingstyleofobject-orientedlanguage,andthecharacteristicsofdatabaseprocessingofdatainformation,andtodeterminethedesignlanguageanddatabaseplatformofthesystem.3)timelycommunicatewiththeschoolmanagementinformationteachersandcurriculumdesigninstructors,andfurtherfamiliarizewiththedataflow,dataprocessingandoperationstepsofthe courseselectioninformationmanagementsystem.Putforwardyourowndesignideas,seektheteacher'sadvice,correcttheunreasonableplaces,andlaythefoundationforthefollowingconceptualdesignanddetaileddesign.2outlinedesign2.1outlinedesignphaseoverallstructuredesignTwo1)determinetheoverallstructureofthesystemandthesubstructure:thesystemisdividedintothreemajorfunctionalmodulesaccordingtothedifferentuserpatterns,whichareassigneddifferentlevelsofauthoritytoachievedifferentsystemfunctions.Thesystemfunctionhierarchydiagramisasfollows:LoginstudentinformationsystemStudentcourseselectionsystemStudentinformationmanagementStudentinformationinquiries,studentinformationmodification,studentinformationbrowsing,studentinformation,deletestudentinformationentry,exitstudentinformationCurriculuminformationmanagement Curriculuminformationinquiry,curriculuminformationmodification,courseinformationbrowsing,curriculuminformationdeletion,curriculuminformationentry,exitcurriculuminformationchoosecourseElectivecourseinformationbrowsing,electivecourseschangeExitsystemThreeFig.2-1functionhierarchydiagramofmodule2.2summaryofdesignphaseresultsStudentinterface,ORACLEsystem,databaseSystemlogininterfaceTeacherinterfaceAdministratorinterfaceNoodlesFig.2-2schematicdiagramofsystemwork ODBC3detaileddesign3.1interfacedesign,thesystemstartedrunningautomaticallyfromthecurrentdirectoryofcoslist.cos,stulist.stufiletoreadinformation,andreal-timedisplayofinformationread.Thesystemusesthedigitalmenuinterface,andgivesthecorrespondingsystemprivilegesaccordingtothedifferentuserpatterns.Userloginsystemmaininterface,Enterusernameandpassword,selectloginmode.Thesystemcarriesonthesecurityverificationtotheuser,ifpasses,thenjumpstothecorrespondingoperationinterface;iffails,thenpromptsthecorrespondingerrorinformation.Thesystemmaininterfaceasshownbelow,infrontofeachfunctionalmoduleismarkedencoding,aslongastheuserinputthecorrespondingencodingcanchoosethecorrespondingfunctionmodule,convenientforusersofalllevelsonthefunctionofthesystemoperation.Atthesametime,thewholestructurediagramisdisplayedintheinterfacesothattheusercanhaveaclearunderstandingofthewholefunctionstructureofthesystem.Aftertheuserchooseseachspecificfunctionmodule,thesystempromptstheusertodothecorrespondingoperation,andfeedbackthecorrespondinginformationprocessingresultaccordingtotheinstructionoftheuser.Inaddition,whenthenewmenuisdisplayed,thecontentswillbeemptiedbeforethesystem'soperationinterfaceissimpleandtheefficiencyoftheuser'ssystemwillbeimproved.Four Figure3-1systemloginmaininterfacediagramFunctionDescription:select1:intothecourseinformationinterface,select2:,enterthestudentinformationinterface,select3:,entertheelectivefunctioninterface,select4:,exitthesystem,andsavetherelevantinformationtothedatatableofthedatabase.Five3.2functionmodulecallingrelationFigure3-1functioncallmodulediagramSix4encodingHeaderfilecode(xk.h)4.1headerfilecode(xk.h)#include#include#include#include#include#includeusingnamespaceSTD;classstudent;//createacoursestructureofstructCourse1{intCNUMBER;//cname[100]//charcourse;coursenameintXinzhi;//floattime//intnatureofcurriculum;curriculumtheoryclassintTestTime;//int//credittimecourseexperiment;coursecreditsint/term;intselect//semestercourse;coursenumber};establishaclassofclasscourses//courseint{public:C;//Course1courseinformationrecordnumbercou[100];void(cinput);//void(cborrow)curriculum informationinput;//void(CEdit)courseinformationbrowsing;//cdelete(void)tomodifycourseinformationvoidCCX;//deletecourseinformation();//void(cshuchu)courseinformationsearch;//courseinformationfromthefilewriteprogram();//voidcshurucourseletterInformationfromtheprogramoutputtoafile};astudent//structstudent1{intsnumber;//char//intnamenumbersname[8];sxinbie;//7}char(gender;menu);//charcoursemenumainmenu();//char(studentmenu)courseinformationmenu;//studentinformationmenucharselectmenu();//ElectiveElectiveClassClassmenu};//selectcourse:publicstudent,publiccourseSelsum(student&mvoidpublic:{course&,n);//electivecreditscalculationofthesumofvoidselcourse(student&m,course&n);//delecourse(student&mvoidstudents,course&n);//studentwithdrawalvoidselborrow(student&m,course&n);//voidsshuchu(browsestudent);//studentinformationoutputtoafile}fromtheprogram;//createastudentclassstudent:int{publics;//studentinformationrecordnumberstudent1Stu[100];void(sborrow);//studentinformationbrowsingvoidsedit();//void(SDelete)studentinformationchanges;//deletevoidSCXstudentinformation();//voidsinput(studentinformationquery);//void(sshuru)studentinformationoutput;//studentinformationinputfromthefileintotheprogramcharsborn[11]charstelephone[11];//dateofbirth;//sage//intphone;ageintsele[20];//int//Xcourse;studentschoosehowmanycoursesintsum;//totalcreditsforthecoursestudents5testresultandrunningresult,testresultandoperationresult Createadatabase,establishtheappropriatedatatable,insertdata,suchassystemusers,students,coursesandsoon,andtestanddebugthesystem.5.1createsystemtestdataTable1-1userlistLoginname(LOGINNAME)0801030328030287,0302100003021001Number,nameandgenderPassword(PASSWORD),oocclocu,Lrj30287,luochuoo,4cnnlocuTable2-1studentinformationsheetModel(MODE)students,teachers,administrators,administratorsPoliticalaspects,nationalremarksDateofbirthclassDormitorymembership0801030328LuoChumale2-8months Softwareprocess0801030350830Hunan,HengyangCommunistYouthLeaguememberHannationalityIntheschool-1989worker3-1CurriculumCoursename(CNAME),discretemathematics,Oracledatabaseapplications,C++,objectorientedprogrammingCoursenumber(CNO)030104030112030111Table4-1studentchoiceformCredit(CREDIT)334Studentnumber(SNO)classChengNameofstaffnumber(TNO)030290,null8491Gradesnull3.44.1 MarknullMajorsnotes(CNAME)0801030328C++programmingapplications;0801020119EngineeringMechanics(SCORE)(SCOREPOINT)(MARK);0801030328databaseprinciplesand030276030121Eight5.2systemoperationinterfaceFigure5-1curriculuminformationinterfacediagramFunctionDescription:select1:intothecourseinformationbrowsing,firstcheckwhetherthereisthecourserecord,ifyouquery,jumptothecurriculuminformationdisplayinterface.No,itindicatesthatthequerycoursedoesnotexistandreturnstothemaininformationinterfaceofthecourse.Choose2:jumptothecourseinformationinputinterface,enterthecoursenumbertoenterthecourse,thecoursename,credits,confirmtheinsertion.Ifsuccessful,thesystemreturnsasuccessfulinsertprompt.Ifitfails,theerrorisprompted.Choose3:intothecurriculuminformationmodifyinterface,accordingtothecoursenumber,viewtherelevantinformationofthecourse,clicktheModifybutton,canmodifythecourseoperation.Successfulupdate,thesystemautomaticallyupdates thecurriculuminformationinthedatabase.Select4:toenterthecourseinformationdeleteinterface,todeletetheentrynumber,toseeifthereisarecordinthetable,nopromptcoursedoesnotexist,thereisdisplayedtorecordtherelevantinformation,theuserispromptedtodeletetherecord,confirmtodelete.Select5:toenterthecourseinformationqueryinterface,theusercanchoosetoviewtheirelectiveandelectivecourseofanyinformation,clickonthefollowinglinkcourseteachers,canalsoviewthebasicinformationofteachers.Select6:toexitthecourseinformationinterfaceandreturntothesystemlogininterface.NineFigure5-2studentinformationinterfacediagramFunctionDescription:select1:toenterthestudentinformationqueryinterface,studentscanchecktheirstatusinformation,thesystemadministratorcanaccordingtotherelevantinformationofstudents,studentschooseacoursetoseeaprofessionalname,studentIDinformationforallstudentsandastudent.Select2:toenterthestudentinformationinputinterface,enterthestudentnumber,name,professionalandotherrelatedinformation,inputoperation,ifsuccessful,thesystemreturnsintosuccesstips,andautomaticallyupdatethedatabasetableofthemiddleschoolstudents'information.Select3:toenterthestudentinformationmodificationinterface,enterthestudentnumber,andmodifytherelevantinformationofthestudents.Select4:toenterthestudentinformationdeleteinterface,studentIDentrytobedeleted,toseewhetherthereisacorresponding recordinthetable,thereisdisplayedtorecordtherelevantinformation,andthatdoyouwanttodeletetherecord,confirmtodelete.Select6:exitstudentinformationinterface,returntothesystemlogininterface.TenFigure5-3studentelectivefunctioninterfacediagramFunctionDescription:select1:toenterthecourseinformationqueryinterface,accordingtothecoursenumberorcoursename,querytherelevantinformationofelectivecourses,clickthecoursebutton,jumptothecourseselectionfunctioninterface.Select2:toenterthestudentelectivefunctionmenu,checktheselectedcoursesforelective,confirmthesubmission,waitfortheadministratortoreview,ifpassed,returntoelectivesuccess.Canreturntocontinuetoseethecourserelatedinformation.Select4:toexitthecourseselectioninterfaceandreturntothesystemlogininterface.ElevenReferenceZhangJun[1].WangQingchun.Objectorientedprogramming(C++).Wuhan:WuhanUniversitypress.2009[2]languageprogramming.TanHaoqiang.Beijing:TsinghuaUniversitypress.2004[3]Lippmann.C++PrimerChineseVersion(FourthEdition).Beijing:PublishingHouseof.2008[4]Xuezhongmoney.HuangJianhua.PrincipleandapplicationofdatabaseSecondEdition.Beijing:BeijingUniversityofPostsandTelecommunicationspress..2005 TwelvePartofthecodeappendixpartofthecode1.studentcourseinformationcode(selectcourse.app)1.studentcourseinformationcode(selectcourse.app)studentelectiveinformationcode#include"xk.h"//selectcourse::Selsumcalculatethecreditsumofvoid(student&m,course&n){for(inti=0;inum;for(inti=0;i=20;if){cout<<"tt***selectionprocesshasexceeded.Can'tchoose.<num1;for(int;ww=0;ww=20)){cout<>bol;if(bol=='N'bol=='n'break||}}}});if(p==0)cout<<"tt***inputnumberdoesnotexist"<>bol;if(bol=='N'||bol=='n')breakcout<0){cout<>num;}}//studentwithdrawal";cout<>bol;if(bol=='N'bol=='n'break||);}}}if(v==1)cout<<"tt***ofthestudentsnocourse!"<>bol;if(bol=='N'||bol=='n')breakcout<>num1(int;for;y=0;y