我正在寻找一个等待命令,这样我就可以在它消失之前读取授予的访问权限。我到处都看了,我发现等待命令有效..但我不能给它添加时间,我只能等待。这是我第一次使用它,我使用它是因为它要么是这个,要么是为了我正在做的事情,而工作的方式让我感到困惑。
input"Enter Password: "; pass$
realPass$="meow"
if pass$=realPass$ then goto[areTheSame]
goto[areNotTheSame]
[areNotTheSame]
print("access denied")
goto[end]
[areTheSame]
print("access granted")
wait
goto[end]
[end]
cls
最佳答案
如果你想让它只是“等待”你可以使用sleep .
如果你想等待按键,如果你使用的是 VB,你可以使用 Console.ReadKey()。
关于basic - basic里面有wait命令吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17372175/