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

正文內(nèi)容

c學(xué)生信息管理系統(tǒng)一卡通(已修改)

2025-04-19 05:21 本頁(yè)面
 

【正文】 //由于對(duì)fsream的不熟練,不會(huì)對(duì)指定部分的數(shù)據(jù)的修改,因而刪除了一些功能,同時(shí)也導(dǎo)致了只能對(duì)消費(fèi)額進(jìn)行加減,但不能導(dǎo)入txt文件。Code:Unicard include stringusing namespace std。class person{ public: void buildAdmin()。 void buildUndergraduate()。 void buildPostgraduate()。 protected: char name[20]。 char sex。 char shape[10]。 char tel[12]。}。class consumer:public person{ protected: double money。}。class student :public consumer //定義學(xué)生類{ protected: char number[20]。 int age。 char nowClass[20]。 char birthPlace[20]。}。class admin :public person //定義管理員類{ public: void login()。 void adminRegister()。 void adminRegister2()。 private: char account[12]。 char password[12]。 char title。}。class undergraduate :public student //定義本科生類{ public: void searchUndergraduate()。 void displayUndergraduate()。 void inputUndergraduate_wrapper()。 void inputUndergraduate()。 void inputUndergraduate1()。 void underPayout(char str[])。 void monitorPower()。 void outputClassStudent(char s[])。 void underSearchAll()。 private: char monitor。}。class postgraduate :public student //定義研究生類{ public: void searchPostgraduate()。 void displayPostgraduate()。 void inputPostgraduate_wrapper()。 void inputPostgraduate()。 void inputPostgraduate1()。 void postPayout(char str[])。 void postSearchAll()。 protected: double wage。}。//不清楚教職工是否配備有一卡通,所以暫不考慮教職工類Unicard include iostreaminclude cstringinclude fstreaminclude stringinclude iomanipinclude unicard using namespace std。void onUndergraduate()。void onPostgraduate()。bool p(char s1[],char s2[])。void inputStudent()。void adminOnLogin()。////以下為person類中成員函數(shù)//void person::buildAdmin() //{ fstream file(,ios::out|ios::app)。 //打開(kāi)文件,指針指向文件尾 ()。 //關(guān)閉文件}void person::buildUndergraduate() //{ fstream file(,ios::out|ios::app)。 //打開(kāi)文件,指針指向文件尾 ()。 //關(guān)閉文件}void person::buildPostgraduate() //{ fstream file(,ios::out|ios::app)。 //打開(kāi)文件,指針指向文件尾 ()。 //關(guān)閉文件}////以下為admin類中成員函數(shù)//void admin::login() //管理員登錄及驗(yàn)證{ int ensurance=0。 char account2[12],password2[12]。 admin ad。 cout endl ★★★★★管理員登錄界面★★★★★ endl。 cout 請(qǐng)輸入您的賬號(hào): 。 cin account2。 cout 請(qǐng)輸入您的密碼: 。 cin password2。 fstream file(,ios::in)。//打開(kāi)文件,指針在文件頭 ((char*)amp。ad,sizeof(ad))。 //讀取類信息 while(!()) //判斷文件指針是否到文件尾 { if(p(,account2)amp。amp。p(,password2)) //判斷輸入的字符是否與文件中的一樣 { cout 登錄成功! endl。 ensurance=1。break。 } ((char*)amp。ad,sizeof(ad))。//如果指針沒(méi)到文件尾,繼續(xù)讀取 } ()。 if(ensurance==0) cout 您的賬號(hào)或密碼輸入錯(cuò)誤! endl。 ()。 //關(guān)閉文件 if(ensurance) adminOnLogin()。}void admin::adminRegister() //管理員在文件外錄入信息{ admin adm。 char choose。 int loop=1,loop1=1。 cout endl ★★★★★管理員注冊(cè)★★★★★ endl。 while(loop1) { loop1=0。 cout 輸入您的賬號(hào)(12位以內(nèi)):。 cin account。 fstream file(,ios::in)。//打開(kāi)文件,指針在文件頭 ((char*)amp。adm,sizeof(adm))。 //讀取類信息 while(!()) //判斷文件指針是否到文件尾 { if(p(,account)) //判斷輸入的字符是否與文件中的一樣 { cout 賬號(hào)已被占用! endl。 loop1=1。 break。 } ((char*)amp。adm,sizeof(adm))。//如果指針沒(méi)到文件尾,繼續(xù)讀取 } ()。 } cout 輸入您的密碼(12位以內(nèi)):。 cin password。 cout 輸入您的姓名:。 cin name。 while(loop) { cout 選擇您的性別(,):。 cin choose。 if(choose==39。a39。||choose==39。A39。) {sex=39。m39。loop=0。} else if(choose==39。b39。||choose==39。B39。) {sex=39。f39。loop=0。} else {cout 您的輸入有誤,請(qǐng)重新選擇! endl。} } strcat(shape,Admin)。 cout 輸入您的電話:。 cin tel。 loop=1。 while(loop) { cout 輸入您的管理員權(quán)限級(jí)別,是否為高級(jí)(y/n):。 cin choose。 if(choose==39。y39。||choose==39。Y39。) {title=39。y39。loop=0。} else if(choose==39。n39。||choose==39。N39。) {title=39。n39。loop=0。} else {cout 您的輸入有誤,請(qǐng)重新選擇! endl。} }}void admin::adminRegister2() //{ admin ad。 ()。 fstream file(,ios::out|ios::app)。 //打開(kāi)文件,指針指向文件尾 ((char*)amp。ad,sizeof(ad))。 //把類信息寫(xiě)入文件 ()。 //關(guān)閉文件 cout ......信息已保存 endl。}////以下為undergraduate類中成員函數(shù)//void undergraduate::searchUndergraduate() //通過(guò)學(xué)號(hào)及姓名查找學(xué)生信息{ undergraduate unde1。 int ensurance=1。 char number2[20],name
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
公安備案圖鄂ICP備17016276號(hào)-1