51hei圖片_20200328201659.png (68.26 KB, 下載次數: 22)

liyongan_1985 發表于 2020-3-28 21:56
將if((counter[5]==2)&&counter[4]==4)寫在if(counter[4]>9)的外面
liyongan_1985 發表于 2020-3-28 21:55
if(counter[4]>9)才會執行里面的語句,而counter[4]==4,永遠無法滿足。
man1234567 發表于 2020-3-31 10:40
樓上正解,但結尾少了句號
將判斷時長和總清零移到計時之外就好了。
| 歡迎光臨 (http://m.raoushi.com/bbs/) | Powered by Discuz! X3.1 |