188610329 发表于 2021-12-2 17:09
简单来讲,去掉 while(KeyNum==2) 就可以了
复杂来讲,
ysl20211202 发表于 2021-12-2 20:28
你好,我去掉while(KeyNum==2)后按下按键程序就只执行了一次,可是我需要它重复执行直到按其它按键,请问 ...
188610329 发表于 2021-12-2 20:55
帮你改好了, 增加一个变量 Mode , 然后,while(1) 里面这样写。
while(1)
{
欢迎光临 (http://www.51hei.com/bbs/) | Powered by Discuz! X3.1 |