K
kenmen
Unregistered / Unconfirmed
GUEST, unregistred user!
1)
var
cout,m:integer;
begin
cout:=10;
m:=1;
while cout<>0 do
begin
if m<>11 then
begin
for m:=1 to 10 do
if Myarr[m].str=(datetostr(now)+timetostr(now)) then
begin
showmessage('Time Now!');
cout:=cout-1;
end;
end
else
for m:=10 downto 1 do
if Myarr[m].str=(datetostr(now)+timetostr(now)) then
begin
showmessage('Tine Now!');
cout:=cout-1;
end;
end;
2)
for m:=1 to 10 do
if Myarr[m].str=(datetostr(now)+timetostr(now)) then
begin
myarr[m].str:='';//下次不再使用
showmessage('Time Now!');
end;
请问高手,这两个程序实现的结果有啥不同?
请说详细点,,我是一只菜鸟啊!
var
cout,m:integer;
begin
cout:=10;
m:=1;
while cout<>0 do
begin
if m<>11 then
begin
for m:=1 to 10 do
if Myarr[m].str=(datetostr(now)+timetostr(now)) then
begin
showmessage('Time Now!');
cout:=cout-1;
end;
end
else
for m:=10 downto 1 do
if Myarr[m].str=(datetostr(now)+timetostr(now)) then
begin
showmessage('Tine Now!');
cout:=cout-1;
end;
end;
2)
for m:=1 to 10 do
if Myarr[m].str=(datetostr(now)+timetostr(now)) then
begin
myarr[m].str:='';//下次不再使用
showmessage('Time Now!');
end;
请问高手,这两个程序实现的结果有啥不同?
请说详细点,,我是一只菜鸟啊!