Autor Beitrag
e-trom995
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Do 21.09.06 16:12 
Hallo ,

ich habe folgendes Problem,

sind dran procedures und functions auf Listen zu schreiben wie z.b.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure L_create (VAR t_liste);

begin
  L.Kopf := nil;
  L.Akt  := nil;
end;


oder :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
function L_empty (L:t_Liste):boolean;

begin
  result := L.Kopf = nil ;
end;


sowie :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
function L_auslesen (L:T_liste):integer;
begin
  result := L.Akt^.inhalt;
end;


Unsere Aufgabe ist es nun die

ausblenden Delphi-Quelltext
1:
procedure L_Vorne_einfuegen (VAR L:T_liste; inh : integer); // Inh = Inhalt					


zu schreiben....

sowie die Prozedure für mittig_oder_hinten_einfuegen

KANN MIR EINER HELFEN????

Das Ganze steht unter der Überschrift : Pointer in Pascal =>Belegung von Zeigervarbiabeln => Datenstruktur für Listen.

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 21.09.06 16:38 
Moin und :welcome: im Forum!

Schau mal hier, da habe ich am Ende des Beitrags ein Beispielprogramm für lineare Listen angehängt. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.