学生成绩管理系统(java语言)(共3页).doc
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《学生成绩管理系统(java语言)(共3页).doc》由会员分享,可在线阅读,更多相关《学生成绩管理系统(java语言)(共3页).doc(3页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上学生成绩管理系统import java.util.*;import java.io.*;class Student implements Serializable String name;long no;private String course=os,java,math;double cscore=0,0,0; public Student(String name,long no,double a,double b,double c)this.name=name;this.no=no;this.cscore0=a;this.cscore1=b;this.cscore
2、2=c;Override public String toString()return this.name+ +this.no+ +this.course0+:+this.cscore0+ +this.course1+:+this.cscore1+ +this.course2+:+this.cscore2;public class Objectprivate static Scanner scanner=new Scanner(System.in);public Student read()throws ExceptionObjectInputStream objIn=new ObjectIn
3、putStream(new FileInputStream(stus.data);int num=objIn.readInt();Student stus=new Studentnum;for(int i=0;inum;i+)stusi=(Student)objIn.readObject();objIn.close();return stus;public void add(Student stus)throws ExceptionStudent s=new Studentstus.length+1;for(int i=0;is.length-1;i+)si=stusi;System.out.
4、print(请输入要添加的学生信息:n+姓名:);String name=scanner.next();System.out.print(学号:);long no=scanner.nextInt();System.out.print(os成绩:);double cscore0=scanner.nextDouble();System.out.print(java成绩:);double cscore1=scanner.nextDouble();System.out.print(math成绩:);double cscore2=scanner.nextDouble();ss.length-1=new
5、Student(name,no,cscore0,cscore1,cscore2);save(s);System.out.println(添加成功!);public void dispAll(Student stus)System.out.println(现有Student信息为:);for(Student stu:stus)System.out.println(stu);public void save(Student stus)throws ExceptionObjectOutputStream objOut=new ObjectOutputStream(new FileOutputStre
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 学生 成绩管理系统 java 语言
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内