第二週 學生管理系統

2021-06-20 07:44:45 字數 1846 閱讀 2639

public class stumanagerelse if("0".equals(input))

islogin = true;

/*if("admin".equals(adminname) && "123456".equals(adminpassword))else*/

}else

if(islogin)

system.out.println("\n歡迎您," + adminname);

}//end 登入while

如果登入成功,輸出操作選單供管理員選擇

system.out.println();

system.out.println("\n請選擇相應的操作選單項:");

system.out.println(" 0-新增新的學生資訊");

system.out.println(" 1-刪除指定學生資訊");

system.out.println(" 2-修改指定學生資訊");

system.out.println(" 3-檢視指定學生資訊");

system.out.println(" 4-查詢所有學生資訊");

system.out.println(" 5-退出登入");

system.out.println(" 6-退出系統");

system.out.print("選擇項:");

string menuitem = sc.nextline();

根據選擇的選單項,執行相應的學生資訊管理

switch(menuitem)else

break;

case "1":

system.out.print("請指定要刪除的學生學號:");

string stuid3 = sc.nextline();

boolean delete = false;

for(int i=0;i}

count--;

delete = true;

break;}}

if(delete)else

break;

case "2":

system.out.print("請指定要修改的學生學號:");

string stuid2 = sc.nextline();

boolean update = false;

for(int i=0;i}

if(update)else

break;

case "3":

system.out.print("請指定要檢視的學生學號:");

string stuid = sc.nextline();

boolean find = false;

for(int i=0;i}

if(!find)

break;

case "4":

if(count == 0)else

}

break;

case "5":

islogin = false; //設為未登入狀態

break;

case "6":

system.out.println("您確定要退出本系統? 確定(y) 取消(n)");

string confirm = sc.nextline();

if("y".equals(confirm) || "y".equals(confirm))

break;

default:

break;

}//end switch

}//end while

//三、結果處理

}}

第二週 學生作品評論

一.便利記事本 他們從最開始確定開發方向後,就立即制定和詳細闡述了專案的五項內容,可以看出他們團隊有清晰地開發思路,明確的專案規劃。在之後他們發布的每一次daily scrum中可以看到他們在不斷發現問題,在每次討論和交流中,完善自己的專案。最終呈現出來的效果如懸浮窗功能 聲音筆記這些功能都很具吸引...

細說學生管理系統(二)

實現功能.這部分讓自己學到了很多技術上的東西 尤其是程式與資料庫互動出現的問題 因為 基本上都是重複的都是是 增刪改查 下面說說自己遇到的問題 問題一 adlockoptimistic 與update adlockbatchoptimistic 與updatebatch。因為弄混了兩者的區別,讓自己...

學生管理系統

include stdio.h include include include struct student void print void void display struct student head struct student creat q next null display head ...