[ Last edited by JIANHUILAI on 2008-3-7 at 10:59 AM ]作者: JIANHUILAI 时间: 2008-3-7 11:18 有人会吗?大家费费心了.作者: balinger 时间: 2008-3-7 16:46 @echo off
set a1=1
set a2=2
set a3=3
set xh6=1
:6
set xh5=1
:5
set xh4=1
:4
set xh3=1
:3
set xh2=1
:2
set xh1=1
:1
call echo %%a%xh6%%%%%a%xh5%%%%%a%xh4%%%%%a%xh3%%%%%a%xh2%%%%%a%xh1%%%>>list.txt
set /a xh1+=1
if %xh1% leq 3 goto 1
set /a xh2+=1
if %xh2% leq 3 goto 2
set /a xh3+=1
if %xh3% leq 3 goto 3
set /a xh4+=1
if %xh4% leq 3 goto 4
set /a xh5+=1
if %xh5% leq 3 goto 5
set /a xh6+=1
if %xh6% leq 3 goto 6
pause
[ Last edited by balinger on 2008-3-7 at 04:47 PM ]作者: slore 时间: 2008-3-7 20:17 直接6重循环不是很好?作者: balinger 时间: 2008-3-7 20:54
Quote:
Originally posted by slore at 2008-3-7 08:17 PM:
直接6重循环不是很好?
谢谢指教。
@echo off
for /l %%a in (1,1,3) do (for /l %%b in (1,1,3) do (for /l %%c in (1,1,3) do (for /l %%d in (1,1,3) do (for /l %%e in (1,1,3) do (for /l %%f in (1,1,3) do (echo %%a%%b%%c%%d%%e%%f>>list.txt))))))作者: JIANHUILAI 时间: 2008-3-8 09:02 这里牛人真多.俺真有点自卑啊.谢谢大家帮忙.符合我的要求.
什么时候我才有这个水平.加把劲了.
[ Last edited by JIANHUILAI on 2008-3-8 at 09:07 AM ]