📄 11cfifo.pas
字号:
program cfifo(input,output);
TYPE
datype=integer;
point= ^node;
node=record
data:datype;
link:point
end;
var
head:point;
procedure scan(head:point);
VAR
x:datype;
p:point;
begin
p:=head;
while p<>nil do
begin
x:=p^.data;
write(x:4);
p:=p^.link;
end;
end;
procedure crtfifo(VAR head:point);
var
x:datype;
last,next:point;
begin
read(x);
new(head);
head^.data:=x;
last:=head;
read(x);
while not eof do
begin
new(next);
next^.data:=x;
last^.link:=next;
last:=next;
read(x);
end;
last^.link:=nil;
end;
begin
crtfifo(head);
scan(head);
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -