freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

通用學(xué)生信息管理系統(tǒng)-資料下載頁

2025-08-23 18:30本頁面
  

【正文】 } if (!flag) { (沒有查到此人信息!)。 } (請(qǐng)按任意鍵繼續(xù)!)。 (true)。 Menu2()。 } public void Browse2() ///瀏覽模塊 { int i = 0。 BrowseAll(ref i)。 Menu2()。 } public void BrowseAll(ref int len) ///瀏覽所有數(shù)據(jù) { len = 0。 FileStream fs = null。 BinaryReader br = null。 FileInfo fi = null。 DirectoryInfo di = new DirectoryInfo(.)。 try { string s = ()。 //獲取當(dāng)前文件的根目錄 s = s + 。 fi = new FileInfo(s)。 if () { //判斷文件是否存在 fs = new FileStream(s, , )。 br = new BinaryReader(fs)。 (\n學(xué)號(hào) 姓名 物理 化學(xué) 生物 平均分)。 try { while (true) { ({0,10}, ())。 ({0,10}, ())。 ({0,10}, ())。 ({0,12}, ())。 ({0,12}, ())。 ({0,12}, ())。 ()。 len = len + 1。 } } catch (EndOfStreamException) { (所有學(xué)生信息瀏覽完畢,按任意鍵繼續(xù)!)。 ()。 ()。 (true)。 } } else { (\n沒有學(xué)生數(shù)據(jù)文件!)。 return。 } } catch (IOException) { (操作文件失敗!)。 return。 } } public void Order2() //排序 { int len = 80。 SaveToArray(ref len)。 ///按平均分進(jìn)行降序排序 zhongxue temp = new zhongxue()。 for (int i = 0。 i len。 i++) { for (int j = 0。 j len i 1。 j++) { if (sd[j] sd[j + 1]) { temp = sd[j]。 sd[j] = sd[j + 1]。 sd[j + 1] = temp。 } } } (\n學(xué)號(hào) 姓名 物理 化學(xué) 生物 平均分)。 for (int i = 0。 i len。 i++) { ({0,10}, sd[i].no)。 ({0,10}, sd[i].name)。 ({0,10}, sd[i].physics)。 ({0,12}, sd[i].chemistry)。 ({0,12}, sd[i].biology)。 ({0,12}, sd[i].average)。 ()。 } (請(qǐng)按任意鍵返回主界面!)。 (true)。 Menu2()。 } }}using System。using 。using 。using 。using 。namespace ConsoleApplication1{ class daxue:Student { static [] sd。 public int puter。 public int csharp。 public int datastructure。 public int getputer { get { return puter。 } set { puter = value。 } } public int getcsharp { get { return csharp。 } set { csharp = value。 } } public int getdatastructure { get { return datastructure。 } set { datastructure = value。 } } public void Input(int i) ///輸入某一學(xué)生信息 { (\n請(qǐng)輸入第{0}學(xué)生的信息:, i + 1)。 while (true) //學(xué)號(hào)不能相同 { (\n 學(xué)號(hào))。 sd[i].no = ()。 int j = 0。 for (j = 0。 j i。 j++) { if (sd[i].no != sd[j].no) { break。 } } if (i == 0 || j != i) break。 (您輸入的學(xué)號(hào)重復(fù),請(qǐng)重輸!)。 } ( 姓名)。 sd[i].name = ()。 try { ( 計(jì)算機(jī)成績(jī))。 sd[i].puter = (())。 ( C成績(jī))。 sd[i].csharp = (())。 ( 數(shù)據(jù)結(jié)構(gòu)成績(jī))。 sd[i].datastructure = (())。 sd[i].average = (sd[i].puter + sd[i].csharp + sd[i].datastructure) / 3。 } catch (FormatException e) { (您輸入的數(shù)據(jù)有誤! + )。 } } public static void SaveToArray(ref int len) { ...}///將數(shù)據(jù)保存至數(shù)組中 public static void Save(int n) { ...} ///保存N個(gè)學(xué)生信息 public static void SaveToFile(int len) { Menu3()。 }///數(shù)據(jù)保存至文件中 private static void Menu3() { } public void Add3() ///添加信息 { int n = 0。 try { (\n請(qǐng)輸入您需添加的學(xué)生記錄的個(gè)數(shù):)。 n = (())。 } catch (FormatException) { (您輸入的數(shù)據(jù)格式有誤!)。 } sd = new daxue[n]。 for (int i = 0。 i n。 i++) { sd[i] = new daxue()。 } for (int i = 0。 i n。 i++) { Input(i)。 } if (n != 0) Save(n)。 else Menu3()。 } public void Modify3() ///修改信息 { int len = 0。 BrowseAll3(ref len)。 SaveToArray(ref len)。 daxue temp = new daxue()。 try { (請(qǐng)輸入要修改學(xué)生的學(xué)號(hào)(學(xué)號(hào)不可改):)。 = ()。 (\n姓名:)。 = ()。 (\n計(jì)算機(jī):)。 = (())。 (\nC:)。 = (())。 (\n數(shù)據(jù)結(jié)構(gòu):)。 = (())。 = ( + + ) / 3。 } catch (FormatException) {
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1