Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在旧的 CP/M 上使用 MBasic 试图获得似乎不起作用的简单输入
10 INPUT "Your Name:", NAME$ 20 PRINT "Hello, " + NAME$ + ","
我只是在工作中扔了这个,以前从未使用过。它是用于旧 CPM 的程序当我运行此程序时,我在 10 中出现语法错误
正确的语法是带分号的 LINE INPUT,即
10 LINE INPUT "Your name:"; NAME$
微软 BASIC 编译器 1980