[求助]排列组合问题
怎样在0-10个数中选三个数(不重复)并显示出来.
dimension a(3)
a(1)=int(rand()*10)
for i=2 to 3
do while .t.
b=int(rand()*10)
ok=1
for j=1 to i
if a(j)=b
ok=0
endif
endfor
if ok=1
exit
endif
enddo
a(i)=b
endfor
for i=1 to 3
?a(i)
endfor
发截图的办法:
(1)生成截图:运行程序——直至出现你要的界面——按屏幕硬拷贝(PrintScreen键)——打开画图工具——编辑该图——另存为jpg格式——结束画图工具。
(2)发到论坛上:打开帖子——在任何帖子下方都有“引用、回复、编辑、帖子操作”,选择回复——根据回复界面的提示进行操作——发表回复。