我看不懂这类题,最好一句一句的解释,一set talk offclearfor i=1 to 3space(20-i)for j=1 to 2*i-1"*"endforendforreturn 运行结果是:** * ** * * * * 二set talk offclearstore 1 to i,jfor n=1 to 4@i ,j+1 say"AB"j=j+1endforreturn 程序
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 02:14:00
我看不懂这类题,最好一句一句的解释,一set talk offclearfor i=1 to 3space(20-i)for j=1 to 2*i-1"*"endforendforreturn 运行结果是:** * ** * * * * 二set talk offclearstore 1 to i,jfor n=1 to 4@i ,j+1 say"AB"j=j+1endforreturn 程序
我看不懂这类题,
最好一句一句的解释,
一
set talk off
clear
for i=1 to 3
space(20-i)
for j=1 to 2*i-1
"*"
endfor
endfor
return 运行结果是:*
* * *
* * * * *
二
set talk off
clear
store 1 to i,j
for n=1 to 4
@i ,j+1 say"AB"
j=j+1
endfor
return 程序运行结果是:AAAAB
我看不懂这类题,最好一句一句的解释,一set talk offclearfor i=1 to 3space(20-i)for j=1 to 2*i-1"*"endforendforreturn 运行结果是:** * ** * * * * 二set talk offclearstore 1 to i,jfor n=1 to 4@i ,j+1 say"AB"j=j+1endforreturn 程序
FoxPro程序?你真强悍!这年头了还在搞这个!
这是两个子过程
set talk off是FoxPro中的关闭每条语句的会话.
clear请屏.
store就是赋值
for循环不用说了吧?
?是换行输出
?是不换行输出
@x,y Say是在指定坐标输出指定内容
还有什么问题?