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

正文內(nèi)容

軟件工程課程設(shè)計-城市公交查詢系統(tǒng)課程設(shè)計說明書(參考版)

2024-08-25 11:28本頁面
  

【正文】 if(option 49 || option 52){ //做輸入檢測,防惡意操作 printf(\t輸入有誤!請重新輸入:)。 //刷新輸入流 option = getch()。 printf(\n\n\n\n\t請輸入你要進行的操作:)。 printf(\n\t\\\n)。 while(1){ system(cls)。 return NULL。 free(p)。}struct user *Logout(struct user *p){ system(cls)。 system(pause)。 //設(shè)置結(jié)尾的空字符}struct user*FindPassword(){ system(cls)。 //將ch賦給password[i],已顯示星數(shù)加一,數(shù)組索引值加一 } password[i] = 39。 //密碼只能為ASCII碼值為32127的字符 printf(*)。 //退一個格 continue 。, 已顯示星數(shù)減一,數(shù)組索引值減一 } putchar(0)。 //password[i1]的值改為39。 //退一個格 password[i]=39。\b39。ch = getch() ) //若用戶輸入回車則結(jié)束密碼輸入 { if (i=len) continue。 //清洗流,以防妨礙密碼正確輸入 for ( ch = getch()。 char ch。 } return p。 system(pause)。39。 return NULL。打開失??!)。 }else{ //意外處理 printf(文件39。 if(x != p) free(x)。 x = q。 if(fp){ q = head。 //將新注冊的用戶信息結(jié)點插入到用戶信息的鏈表中 fclose(fp)。 //標(biāo)志注冊的為普通用戶 pnext = headnext。 } } } puserId = userId。 if(!strcmp(ploginPassword,password)){ break。 //gets(password)。 }else{ printf(\n請再次輸入密碼:)。 if(strlen(ploginPassword) 20){ printf(\n密碼過長!請重新輸入密碼:)。 //gets(ploginPassword)。 } } } printf(請輸入登錄密碼:)。 } if(mark){ printf(\n用戶名已存在!請重新輸入:)。 //標(biāo)記用戶名已存在 break。 }else{ while(q != NULL){ mark = false。 }else if(strlen(ploginName) 40){ printf(\n用戶名過長!請重新輸入:)。 //用戶名驗證 if(strlen(ploginName) 4){ printf(\n用戶名過短!請重新輸入:)。 //printf(%s,ploginName)。 while(1){ fflush(stdin)。 // 記錄用戶賬號的總數(shù),作為新建用戶的編號 } p = (struct user*)malloc(sizeof(struct user))。 headnext = q。 //printf(%d %d %s %s,qidentity,quserId,qloginName,qloginPassword)。qidentity,amp。 qnext = NULL。 headuserId = 0。 strcpy(headloginName,admin)。headuserId,headloginName,headloginPassword)。 if(fp){ while(!feof(fp)){ if(userId == 0){ //頭結(jié)點存設(shè)定好的管理員信息 fscanf(fp, %d %d %s %s,amp。 //建頭結(jié)點,將用戶數(shù)據(jù)全部取出存入到鏈表中,便于操作 headnext = NULL。 int userId = 0。 char password[20]。 struct user *head。 printf(\n用戶注冊頁面\n\n\n\n\n)。)。 } system(pause)。 system(pause)。39。 return NULL。 printf(修改密碼成功!)。 } if(mark){ return q。 system(pause)。39。 //釋放鏈表結(jié)點,節(jié)省內(nèi)存 } fclose(fp)。 p = pnext。 while(p != NULL){ fprintf(fp, %d %d %s %s,pidentity,puserId,ploginName,ploginPassword)。 } fp = fopen(,w)。 break。 printf(修改密碼成功!)。 strcpy(qloginPassword,password1)。amp。 } q = headnext。 qnext = headnext。quserId,qloginName,qloginPassword)。 fscanf(fp, %d %d %s %s,amp。 if(fp){ //將用戶數(shù)據(jù)讀出存入鏈表進行操作 while(!feof(fp)){ q = (struct user*)malloc(sizeof(struct user))。 }else{ printf(\n兩次輸入的密碼不一致!請重新輸入密碼:)。 Inputpw(password2,20)。 fflush(stdin)。 }else{ if(!strcmp(password1,xloginPassword)){ printf(\n不能與原密碼相同!請重新輸入密碼:)。 //對密碼進行驗證 if(strlen(password1) 20){ printf(\n密碼過長!請重新輸入密碼:)。 //gets(ploginPassword)。 printf(請輸入新密碼:)。 //申請頭結(jié)點 headnext = NULL。 bool mark。 char password2[20]。 struct user *p,*q,*head。 } //system(pause)。 system(pause)。city39。 return。打開失敗!)。 }else{ printf(文件39。 } free(head)。 free(p)。 fprintf(fp, %d %s,pcityId,pcityName)。 if(fp){ p = headnext。 } fclose(fp)。 pnext = headnext。 g_cityId = i。 pnext = NULL。 }else{ break。 } if(mark){ printf(此城市已存在!請重新輸入城市名(輸入0表示返回):)。 //表示城市已收錄,不需要再添加 break。 mark = false。 if(!strcmp(cityName,0)){ //把輸入0作為模塊出口 break。 //對輸入的城市名做正確性驗證 while(1){ fflush(stdin)。 headnext = p。 if(i%5 == 0){ printf(\n)。 //將文件中的信息取出放到鏈表中,便于操作 printf(\t%s,pcityName)。 fscanf(fp, %d %s,amp。 while(!feof(fp)){ p = (struct city*)malloc(sizeof(struct city))。 fp = fopen(,r)。 //用于標(biāo)記城市名是否存在 head = (struct city*)malloc(sizeof(struct city))。 //char a[5] = 0。 int i = 0。 FILE *fp。} void AddCity(){ system(cls)。 return。打開失??!)。 }else{ printf(文件39。 } free(head)。 free(p)。 //將無用的鏈表進行釋放 while(p != NULL){ fprintf(fp, %d %s,pcityId,pcityName)。 } } if(strcmp(cityName,0)){ g_cityId = pcityId。 }else if(strlen(cityName) 20 || strlen(cityName) 4){ printf(城市名長度不符合要求!請重新輸入城市名(輸入0表示返回):)。 } p = pnext。 while(p != NULL){ if(!strcmp(pcityName,cityName)){ mark = true。 } p = headnext。 gets(cityName)。 } printf(\n請輸入你想要切換到的城市(輸入0表示返回):)。 } pnext = headnext。 i++。pcityId,pcityName)。 pnext = NULL。 if(fp){ printf(已收錄的城市:\n)。 //建立存放城市信息的鏈表 headnext = NULL。 bool mark = false。 int i = 0。 FILE *fp。}void ChangeCity(){ system(cls)。 return。打開失敗!\n\n\n)。 } }else{ printf(\n\n\n\n\n\t\t文件39。 system(pause)。city39。 system(pause)。 system(cls)。 } free(head)。 free(p)。 fprintf(fp, %d %s %d,pstationId,pstationName,pcityId)。 if(fp){ p = headnext。 } fclose(fp)。 //釋放鏈表結(jié)點,節(jié)省內(nèi)存 p = headnext。 while(p != NULL){ //更新公交站點文件信息 headnext = headnextnext。 //printf(yy)。 qnext = qnextnext。 default:return。 switch(option){ case 49:SiteDeleteDeal(stationId)。 }else{ printf(\n輸入錯誤!請重新輸入:)。 option = getch()。 printf(\n是否確定刪除%s站( ):,pstationName)。 LineShow(pstationId)。 } } if(strcmp(stationName,0)){ system(cls)。 }else if(strlen(stationName) 20 || strlen(stationName) 4){
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1