首页 > 解决方案 > smartBasic 中的目录搜索

问题描述

我想在 smartBasic 中实现目录搜索算法。你能告诉我这段代码中的变量是什么吗?

PRINT "Current directory: ";CURRENT_DIR$()
PRINT
PRINT "Folders:"
PRINT
DIR "/" LIST DIRS a$,c
FOR n = 0 TO c-1
PRINT ,a$(n)
NEXT n
PRINT
PRINT "Files:"
PRINT
DIR "/" LIST FILES a$,c
FOR n = 0 TO c-1
PRINT ,a$(n)
NEXT n
REM What is are the variables in this code?

标签: parametersfilesystemsbasic

解决方案


推荐阅读