- 过河
- 2009-03-16 13:30:04 @
program project1;
type
max=^noip;
noip=record
shu:integer;
xia:max;
end;
var
p,q:max;
n:integer;
begin
readln(n);
p:=nil;
while n0 do
begin
new(q);
q^.shu:=n;
q^.xia:=p;
p:=q;
readln(n);
end;
while qnil do
begin
write(q^.shu,' ');
q:=q^.xia;
end;
dispose(q);
readln;
readln;
end.
1 条评论
-
losered LV 8 @ 2015-08-11 21:37:10
...试问一句大哥你在本地试了没
- 1