正在加载图片...
sInitialize the output variables 10 key3={}: 11 RT=【门: 12 13 Turn off the output to the command window 14 ListenChar(2); 15 16 nKeys 0; 17 startTime GetSecs; 18 sloop until a key is pressed 19白whi1e习 A:设置while1的'死循环 20 ssee if a key is pressed 21 keyIsDown,timeSecs,keyCode ]KbCheck; 22白 if keyIsDown ta key is down:record the key and time pressed 23 nKeysnKeys+1; 24 RT(nKeys)=timeSecs-startTime; 25 keys(nKeys}=KbName (keyCode) 26 sclear the keyboard buffer 27 while KbCheck;end 28 break 29 end 30 end 31 sTurn on the output to the command window 32 ListenChar(0); A:设置while 1的’死循环’
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有