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

正文內(nèi)容

王爽語言課程設(shè)計一代碼(編輯修改稿)

2024-11-09 22:32 本頁面
 

【文章內(nèi)容簡介】 ntf(“terror!!input again:”)。continue。}}cars[m].is_in=39。y39。cars[m].car_type=size。fp=fopen(filename(startkey),“a+”)。fprintf(fp,“%30s%8d%12s%20snn”,mytime(tblock),m,kind[cars[m].car_type],“發(fā)卡,放行”)。fclose(fp)。fp=fopen(“”,“w+”)。fprintf(fp,“%d”,num)。fclose(fp)。fp=fopen(“”,“w+”)。for(i=1。i{fprintf(fp,“%d %d %c %lf %d %d %st%stn”,cars[i].card_num,cars[i].car_type,cars[i].is_in,cars[i].money,cars[i].station_in,cars[i].station_out,cars[i].time_in,cars[i].time_out)。}fclose(fp)。printf(“登記完畢,請發(fā)卡放行,并按任意鍵回到主菜單a”)。getche()。}else if(key==2){system(“cls”)。printf(“請輸入卡號(按0返回):”)。while(1){ch=39。y39。fflush(stdin)。while(scanf(“%d%c”,amp。choice,amp。enter)==0 || enter!=39。n39。){printf(“terror!!input again:”)。fflush(stdin)。}fp=fopen(“”,“r+”)。fscanf(fp,“%d”,amp。num)。fclose(fp)。fp=fopen(“”,“r+”)。rewind(fp)。initialize(cars,num,fp)。fclose(fp)。if(choice9*NUM){printf(“無此卡號...ntinput again:”)。continue。}else if(choice==0){ch=39。n39。break。}else if(choice0 amp。amp。 choice{printf(“該卡號尚未發(fā)布...ntinput again:”)。continue。}else if(choice0 amp。amp。 choice{break。}else if(choice0 amp。amp。 choice{printf(“該卡號車于%s從本站進入高速,尚在行...ntinput again:”,cars[choice].time_in)。continue。}else{printf(“terror!!input again:”)。continue。}}if(ch==39。n39。)continue。cars[choice].station_out=startkey。fp=fopen(“”,“w+”)。for(i=1。i{fprintf(fp,“%d %d %c %lf %d %d %st%stn”,cars[i].card_num,cars[i].car_type,cars[i].is_in,cars[i].money,cars[i].station_in,cars[i].station_out,cars[i].time_in,cars[i].time_out)。}fclose(fp)。if(cars[choice].car_type==0){printf(“該車于%s在%s進入高速,為特殊車,無需收費n”,cars[choice].time_in,address[cars[choice].station_in])。}else{i=abs(km[cars[choice].station_in]km[cars[choice].station_out])。money=cars[choice].money=i*price[cars[choice].car_type]。printf(“該車于%s在%s進入高速,需繳費%.1lf款:”,cars[choice].time_in,address[cars[choice].station_in],cars[choice].money)。fflush(stdin)。while(1){while(scanf(“%lf%c”,amp。pay,amp。enter)==0 || enter!=39。n39。){printf(“terror!!input again:”)。fflush(stdin)。}if(paymoney){printf(“繳付%.1lf元,找零%.1lf元...n”,pay,paymoney)。money=0。break。}else if(pay{money=moneypay。printf(“繳付%.1lf元,需再繳付%.1lf元:”,pay,money)。continue。}else{printf(“已繳費完畢,共收取人民幣%.1lf元...n”,cars[choice].money)。break。}}}timer=time(NULL)。tblock=localtime(amp。timer)。printf(“現(xiàn)在時間是:%sn”,mytime(tblock))。strcpy(cars[choice].time_out,mytime(tblock))。元,請付fp=fopen(“”,“a+”)。fprintf(fp,“%5d%12s%15s%30s%”,choice,kind[cars[choice].car_type],address[cars[choice].station_in],cars[choice].time_in,cars[choice].money)。fprintf(fp,“%32s%30snn”,address[cars[choice].station_out],cars[choice].time_out)。fclose(fp)。cars[choice].money=0。cars[choice].is_in=39。n39。cars[choice].station_in=0。cars[choice].station_out=startkey。strcpy(cars[choice].time_in,“無”)。strcpy(cars[choice].time_out,“無”)。fp=fopen(filename(startkey),“a+”)。if(cars[choice].car_type==0)fprintf(fp,“%30s%8d%12s%20snn”,mytime(tblock),choice,kind[cars[choice].car_type],“收卡,放行”)。else fprintf(fp,“%30s%8d%12s%20snn”,mytime(tblock),choice,kind[cars[choice].car_type],“繳費,收卡,放行”)。fclose(fp)。cars[choice].car_type=0。fp=fopen(“”,“w+”)。for(i=1。i{fprintf(fp,“%d %d %c %lf %d %d %st%stn”,cars[i].card_num,cars[i].car_type,cars[i].is_in,cars[i].money,cars[i].station_in,cars[i].station_out,cars[i].time_in,cars[i].time_out)。}fclose(fp)。printf(“請收卡放行,并按任意鍵回到主菜單a”)。getche()。}else if(key==3){system(“cls”)。refer(cars,startkey)。}else if(key==4){while(1){system(“cls”)。printf(“input password: ”)。for(i=0。){fflush(stdin)。ch=getch()。if(ch==39。r39。 || ch==39。n39。){break。} else if(ch==39。b39。){if(i0){pwd[i]=39。39。printf(“b b”)。//刪除前個字符,光標(biāo)退一個}continue。}else if(i==max_len){continue。}else{pwd[i++]=ch。//接收字符到密碼中printf(“*”)。} } pwd[i]=39。39。fp=fopen(“”,“a+”)。rewind(fp)。fscanf(fp,“%8s”,password)。fclose(fp)。if(strcmp(pwd,password)==0){ break。} else { printf(“n密碼錯誤或空密碼!!(空密碼時系統(tǒng)規(guī)定為不能注銷)n”)。printf(“想再輸一遍密碼嗎?(y or n):”)。while(1){fflush(stdin)。ch=getche()。if(ch==39。y39。 || ch==39。Y39。){system(“cls”)。break。}else if(ch==39。n39。 || ch==39。N39。){break。}else{printf(“b b”)。continue。}}if(ch==39。y39。 || ch==39。Y39。)continue。else if(ch==39。n39。 || ch==39。N39。)break。}}if(ch==39。n39。 || ch==39。N39。)continue。i=0。for(j=1。j{fp=fopen(filename(j),“w+”)。fclose(fp)。}fp=fopen(“”,“w+”)。fclose(fp)。fp=fopen(“”,“w+”)。fprintf(fp,“%dn”,i)。fclose(fp)。fp=fopen(“”,“w+”)。fclose(fp)。printf(“n注銷成功!!n”)。break。}else{fp=fopen(“”,“w+”)。for(i=1。i{fprintf(fp,“%d %d %c %lf %d %d %st%stn”,cars[i].card_num,cars[i].car_type,cars[i].is_in,cars[i].money,cars[i].station_in,cars[i].station_out,cars[i].time_in,cars[i].time_out)。}fclose(fp)。fp=fopen(“”,“w+”)。fprintf(fp,“%dn”,num)。fclose(fp)。break。} } return 0。} char *mytime(struct tm *timeptr)//獲取系統(tǒng)時間的函數(shù) { char wday_name[7][4]={“Sun”,“Mon”,“Tue”,“Wed”,“Thu”,“Fri”,“Sat”}。static char result[29]。sprintf(result,“%d年%d月%d日(%3s)%d:%d:%d”,1900+timeptrtm_year,1+timeptrtm_mon,timeptrtm_mday,wday_name[timeptrtm_wday],timeptrtm_hour,timeptrtm_min, timeptrtm_sec)。return result。} char *filename(int startkey){ static char name[22]。sprintf(name,“車輛處理與記錄%”,startkey)。return name。}void Delay(int n)//延時函數(shù) { int i,j,k。for(i=1。ifor(j=1。j{for(k=1。k{}} } }void initialize(struct car *cars,int num,FILE *fp)///初始化函數(shù) { int i,j。if(num==0){for(j=1。j{for(i=NUM*(j1)+1。i{cars[i].money=0。cars[i].card_num=i。cars[i].is_in=39。n39。cars[i].car_type=0。cars[i].station_in=0。cars[i].station_out=j。strcpy(cars[i].time_in,“無”)。strcpy(cars[i].time_out,“無”)。}} } else {for(i=1。i{fscanf(fp,“%d %d %c %lf %d %d %st%stn”,amp。cars[i].card_num,amp。cars[i].car_type,amp。cars[i].is_in,amp。cars[i].money,amp。cars[i].station_in,amp。cars[i].station_out,cars[i].time_in,cars[i].time_out)。} } } int refer(str
點擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1