【正文】
我有計劃準(zhǔn)備在以后的時間里花一個學(xué)期好好強化一下C語言,大三再開始學(xué)C++,并把C++作為以后唯一學(xué)習(xí)的一門計算機編程語言來學(xué)習(xí)。所以經(jīng)過這次實習(xí)之后我會在以后的學(xué)習(xí)當(dāng)中強化對一些編程思想的學(xué)習(xí),通過多寫程序多體會來提升自己。三、實習(xí)心得在這次實習(xí)之前我從未自己寫過什么較長一點的程序,而且自C語言課程結(jié)束之后基本上沒有看過書,忘記了相當(dāng)多的知識,所以在編寫程序時感覺很困難。 menu()。 else /*無剩余停車空間*/ printf(No space both in parking lot and street.)。 printf(And there are %d cars in it.,w1)。 /*判斷是否還有空閑停泊車位*/ w2=whether_carwait_full()。 s=whether()。[流程圖]車位信息瀏覽系統(tǒng)顯示車位使用信息返回主菜單[程序]void car_browse() /*車位信息瀏覽模塊*/{ int s,w1,w2。 /*調(diào)用車輛離開模塊*/ else menu()。 getchar()。 scanf(%d,amp。 /*返回主菜單*/ puts(\n\n\t\t *********************************************\n)。 puts(\t\t\t\t 1).Another car depart)。 printf(what do you want to do?\n)。 printf(\n\t\t^_^ Do it successful^_^\n)。 if(whether_in==1) car_in_left(n)。 int search()。 /*判斷是否存在*/ 車輛離開模塊void car_depart() /*車輛離開模塊*/{ int n,w。 /*車輛處于等待車位,返回車輛編號*/return k。wait[i].num==temp_num) break。amp。i++) {if(wait[i].state==39。 for(i=0。 /*車輛處于停泊車位,返回車輛編號*/ return k。car[i].num==temp_num) break。amp。i++) {if(car[i].state==39。 for(i=0。 return n。n=1。 } else /*無該車輛信息*/ {printf(Not Found!Input again! \nOr input 1 to exit )。n2N) /*車輛處于等待車位*/ {whether_in=0。} /*車輛處于停泊車位*/else if(n1==Mamp。 /*調(diào)用查詢已用等待車位模塊*/ if(n1M) {whether_in=1。 n1=search_car(temp_num)。temp_num)。 do { printf(Input the num of the leaving car!)。E39。i++) wait[i]=wait[i+1]。 for(i=n。 car_wait_left(1)。 car[M].in_time=s。i++,j) car[i]=temp[j]。 fo