畢設 班級管理系統 找回密碼模組

2022-05-07 06:27:07 字數 1192 閱讀 9619

【模組介紹】

【介面設計】

【程式流程圖】

【核心**】

private list ids = new list();//

儲存密保資訊

private list keys = new list();//

儲存密保答案

private

string str = new

string ;//

密保問題

int m;//

記錄密保隨機數

關鍵**:

string cm = string.format("

select count(*) from logininfo where luser=''

", txtusername.text);//

判斷使用者名稱是否存在

using (sqlconnection concon = new

sqlconnection(strcon))

'", txtusername.text);//

查詢該使用者名稱所設定的相關密保問題及對應答案

sqlcommand sc1 = new

sqlcommand(com, concon);

sqldatareader reader =sc1.executereader();

while

(reader.read())

random r = new random();//

定義隨機變數

m = r.next(ids.count);//

生成隨機密保代號

lblquestion.text = "

密保問題:

" + str[ids[m]];//

顯示隨機密保問題

}

else

}

做畢設(十) 後台管理

進行已發布新聞的管理 action edit getnews type submit value 爬取新聞並審核 form action edit switch th if type submit value 切換為已發布新聞 th if type submit value 切換為待審核新聞 for...

班級的管理系統

需求 班級管理系統 功能 對學生的資訊進行管理 1 登入系統 2 退出系統 賬號 密碼 驗證碼 歡迎來到班級管理系統 1 新增學生資訊 2 刪除學生資訊 3 查詢指定學生資訊 4 查詢所有學生資訊 5 統計班級資訊 6 退出 請選擇您要查詢的序號 建立乙個student類 public class ...

畢設專案(三)玩家BUFF管理

將buff設定成乙個結構體 或者設定成乙個單獨的類 buff結構體中包含以下內容 1 buff型別 int 本遊戲中共設定了4種buff,1 移速,2 攻速,3 防禦,4 攻擊。3 buff值 float buff加強的值,不同型別對該值的應用方法不同,比如 移速型別buff為 speed spee...