これは私が学校プロジェクトのために作った2つのリンクリストです。 2番目から最初のリストを呼びたいと思います。コンパイル時はすべてOKです。私がそれを実行すると、それは言う: プロジェクト(myProject)例外クラス '外部:SIGSEGV'を発生させた。アドレス40D32Dここ で は私のコードです:リンクリストへのパスカルリンクリストは機能しません
list2=^ptr;
ptr=record
vlera:integer;
pozicioni:integer;
end;
type
list=^pointer;
pointer=record
rreshti:list2;
end;
var
a:array[1..7] of list;
i:integer;
kjovlere:list2;
begin
for i:=1 to 7 do begin
a[i]:[email protected];
write('Give the pozition for the row:',i,' : ');
read(a[i]^.rreshti^.pozicioni);
write ('give the value for this poziton :');
read(a[i]^.rreshti^.vlera);
writeln;
end;
end.
、エラーが誰も私を説明したり、私にどんな提案:)
J. Piquardのおかげで、あなたが行っているすべての説明のためにたくさん.. :) –