O ooooh Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-08 #1 for i:=0 to 9 do for j:=i+1 to 10 do ... 我想令2个循环都同时步进>1,但dephi没有step,怎办?
J jxj0561 Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-08 #2 程序里加一个变量,值为I或J乘以步长,然后做一个判断就成了
S smithcouple Unregistered / Unconfirmed GUEST, unregistred user! 2006-10-08 #4 while完全可以搞定 i := 0; while i <= 9 do begin j := i + 1; while j <= 10 do begin ... Inc(j, 步长); end; Inc(i, 步长); end;
while完全可以搞定 i := 0; while i <= 9 do begin j := i + 1; while j <= 10 do begin ... Inc(j, 步长); end; Inc(i, 步长); end;