TYPE dpointer=^list;
list=RECORD
data:integer; left
END;
如下過程將在雙鏈表第i個結點(i>=
PROCEDURE insert(VAR head:dpointer;i
VAR s
BEGIN
new(s); s^
IF(i=
ELSE BEGIN p:=head; (
WHILE ((p<>NIL) AND (j<i)) DO BEGIN j:=j+
IF p<>NIL THEN
IF (p^
THEN BEGIN p^
ELSE BEGIN s^
ELSE writeln(
END
END;【廈門大學
CONST maxlen=
TYPE sqlisttp=RECORD
elem:ARRAY[
last:
END;
PROC exam
j:=
WHILE (
[ IF L
i:=i+
(
ENDP;【同濟大學
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/22564.html