设为首页收藏本站

Scripts 学盟

 找回密码
 加入学盟

QQ登录

只需一步,快速开始

查看: 380|回复: 0

学生成绩管理程序。添加学生信息的代码怎么写?链表是后插式的 [复制链接]

匿名  发表于 2013-6-30 14:25:48
import java.util.Scanner; public class console { public static void main(String[] agrs){ show(); } public void crate(Object id,String name,int score){ Student id1 =new Student(); } public static void show(){ System.out.println("================================================="); System.out.println("学生成绩管理 "); System.out.println("1.XX"); System.out.println("2.XX"); System.out.println("3.XX"); System.out.println("4.XX"); System.out.println("5.XX"); System.out.println("6.XX"); System.out.println("7.XX"); System.out.println("8.XX"); Scanner k =new Scanner(System.in); while(k.hasNext()){ int i = k.nextInt(); switch(i){ case 1: System.out.println("1次奥你妹,"); break; case 2:System.out.println("2次奥你妹,"); break; case 3:System.out.println("3次奥你妹,"); break; case 4:System.out.println("4次奥你妹,"); break; case 5:System.out.println("5次奥你妹,"); break; case 6:System.out.println("6次奥你妹,"); break; case 7:System.out.println("7次奥你妹,"); break; case 8:System.out.println("8次奥你妹,"); break; } } } }
您需要登录后才可以回帖 登录 | 加入学盟

手机版|Scripts 学盟     |

GMT+8, 2020-7-10 20:04 , Processed in 0.076530 second(s), 14 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部