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

正文內(nèi)容

c課程設(shè)計--模擬電信計費(編輯修改稿)

2025-02-12 04:25 本頁面
 

【文章內(nèi)容簡介】 printf(\t* * * * * * * *\n)。 printf(\t* * * * * * * * * * * * * * * * * *\t)。 i=6。 do { t1=time(NULL)。 strcpy(str,ctime(t))。 if(count==6) break。 while(strcmp(str,str1)!=0) { strcpy(str1,str)。 printf( )。 count++。 break。 }}while(1)。system(cls)。logshow()。}設(shè)計流程如圖32所示。2. account_code()成員函數(shù)void log_in ::account_code(){ int b。 cout**********1注冊新賬號***********\n。 cout**********2修改密碼***********\n。 cout請再此輸入選擇代號:\n。 cinb。 if(b==1) { string temp1。 string temp2。 ofstream outfile 。 // 建立輸出文件流對象 ( , ios::out )。 // 連接文件,指定打開方式 cout請輸入賬號:endl。 cinaccount。 cout請輸入密碼:endl。 cintemp1。 cout請再次輸入密碼:endl。 cintemp2。 if(temp1==temp2) code=temp1。 outfile account endl 。 outfile code endl 。 () 。 cout注冊成功!\n。 system(pause)。 menu()。 } else { fstream rwfile ( , ios::in | ios::out ) 。 string temp1。 string temp2。 string temp3。 string temp4。 string temp5。 string temp6。 rwfiletemp1temp2。 cout請輸入您的賬號:endl。 cintemp3。 cout請輸入原密碼:endl。 cintemp4。 if((temp1==temp3)amp。amp。(temp2==temp4)) {loop:cout請輸入新密碼:endl。 cintemp5。 cout請再次輸入新密碼:endl。 cintemp6。 if(temp5==temp6) { account=temp1。 code=temp5。 } else goto loop。 rwfile account endl 。 rwfile code endl 。 ()。 cout修改成功!\n。 system(pause)。 menu()。 } }}設(shè)計流程如圖33所示。3. log()成員函數(shù)void log_in ::log(){ int b。 cout**********1注冊賬號或修改密碼***********\n。 cout**********2登陸系統(tǒng)***********\n。 cout請再此輸入選擇代號:\n。 cinb。 if(b==1) account_code()。 else load()。}設(shè)計流程如圖34所示。 圖32 load()成員函數(shù)流程圖 圖33 account_code()成員函數(shù) 圖34 log()成員函數(shù)4. codeNum()成員函數(shù)void log_in ::codeNum(){ char a[37]=abcdefghijklmnopqrstuvwxyz0123456789。//定義一個包含26個小寫字母的字符串 int i,j。 char output[5]=。 char code[5]=。 srand((int)time(0))。//初始化隨機數(shù)發(fā)生器 printf(\n\n \t驗證碼: )。 for(i=0。i4。i++) { j= rand()%36。//取得0~25的隨機數(shù) printf(%c ,a[j])。 output[i]=a[j]。 } a[4]=39。\039。 printf(請輸入驗證碼:)。 fflush(stdin)。 scanf(%s,amp。code)。 if(strcmp(code,output)!=0) { printf(\n\t\t驗證碼輸入錯誤,請重新輸入!\n\n)。 system(pause)。 codeNum()。 }}設(shè)計流程如圖35所示。圖35 codeNum()成員函數(shù)5. logshow()成員函數(shù)void log_in ::logshow(){ ifstream infile(,ios::in)。 string temp1。 string temp2。 infiletemp1temp2。loop:cout請輸入您的賬號:endl。 cinaccount。 cout請輸入您的密碼:endl。 cincode。 codeNum()。 if((temp1==account)amp。amp。(temp2==code)) { menu()。 } else goto loop。}設(shè)計流程如圖36所示。圖36 logshow()成員函數(shù) 6. logshow()成員函數(shù)void log_in ::quit(){ cout確定退出系統(tǒng)?endl。 coutYes?/Y or No?/N:endl。 char c。 cinc。 if(c==39。Y39。||c==39。y39。) { int i。 char
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1