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.
在 BASIC 中,我知道两个打印到屏幕的指令,PRINT和WRITE,它们都会自动打印最后带有换行符的字符串。我想打印一个没有换行符的字符串。我怎样才能做到这一点?我正在使用 GW-BASIC。
PRINT
WRITE
与分号一起使用PRINT不会打印新行:
10 REM The trailing semicolon prevents a newline 20 PRINT "Goodbye, World!";
资料来源:罗塞塔代码