SIMS.docVIP

  • 6
  • 0
  • 约8.5万字
  • 约 16页
  • 2016-12-01 发布于河南
  • 举报
SIMS

SIMS//ProgramName:StudentInformationManagementSystem//ProgramPurpose:This,is,a,student,information,management,system,which,can,input、search,and,alter,the,student,information,.//Programmer:焦向宁、陈炳仁、潘倩、于睿using,System;using,System.Collections.Generic;using,System.ComponentModel;using,System.Linq;using,System.Text;using,System.IO;namespace,StdInfManSys{,,,,class,Program,,,,{,public,static,void,Main(string[],args),{,,,,,string,a,=,,+,Environment.NewLine,+,,+,Environment.NewLine,+,,+,Environment.NewLine,+,,+,Environment.NewLine,+,;,,,,,Console.WriteLine(a);,,,//空行,,,,,Console.ForegroundColor,=,ConsoleColor.Red;,,//字体颜色,,,,,,,,,,Console.WriteLine(\t#~~~~~~~~~~~~~~~~~~~***************~~~~~~~~~~~~~~~~~~~~~~#);,,,,,Console.WriteLine(\t##);,,,,,Console.WriteLine(\t##);,,,,,Console.WriteLine(\t#,,,,,,学生信息管理系统,,,,,,#);,,,,,Console.WriteLine(\t##);,,,,,Console.WriteLine(\t##);,,,,,Console.WriteLine(\t#,,,,,制作者:焦向宁、陈柄任、潘倩、于睿,,,#);,,,,,Console.WriteLine(\t#~~~~~~~~~~~~~~~~~~~***************~~~~~~~~~~~~~~~~~~~~~~#);,,,,,//表头,,,,,Console.ForegroundColor,=,ConsoleColor.Gray;,,,,,,,,,,Console.Write(\t\t\t请按Enter键进入系统操作界面);,//按ENTER键进入操作界面,,,,,string,strPwd,=,Console.ReadLine();,,,,,bool,blLogin,=,(strPwd,==,);,,,,,string,strInfo,=,blLogin,?,\t*****************欢迎进入学生信息管理系统*****************,:,输入错误;,,,,,Console.WriteLine(strInfo);,,,,,,,,,,Console.WriteLine(请选择操作选项(1-录入信息、2-查询信息、3-修改信息、4-删除信息、0-退出程序):);,,,,,/***,,,,,,操作主菜单,,,,,,***/,,,,,int,Operate1;,,,,//用户用来选择的操作,,,,,Operate1,=,Convert.ToInt32(Console.ReadLine());,,,,,while,(Operate1,!=,0),,,,,{,,switch,(Operate1),,{,,,,/****************************************录入学生信息****************************************/,,,,,,//在TXT文档中输入学生信息,,,,,,case,1:,,,{Console.WriteLine(请输入学生个数:);,,,int,Number,=,Convert.ToInt32(Console.ReadLine());int,Counter,;for,(Counter,=,0;,Counter,,Number;,Counter++){,,,,Console.WriteLine(请依次输入学生姓名、学号、性别、年龄、专业和爱好:);,,,,string,path,=,@D:\\SIMS.txt;,,//在D盘上创建TXT文档:SIMS,,,,Student,std,=,new,Student();,,,,//定义对象std,并将其信息输入到SIMS文

文档评论(0)

1亿VIP精品文档

相关文档