Im a newbie with linked lists but I need fast help with it. I have 2 linked lists.
TOccurencyNodePtr = ^TOccurencyNode;
TOccurencyNode = record
Occurency : integer;
Next : TOccurencyNodePtr;
end;
TIdentifierFoundNodePtr = ^TIdentifierFoundNode;
TIdentifierFoundNode = record
Identifiers : string;
Next : TIdentifierFoundNodePtr;
end;
and global variables: Identifier:string and Occurence:integer
and finally I need routine for adding it into lists like that
If Identifier is in list of identifiers then add occurence into occurence list if not add identifier to identifiers list and occurence into occurence list.
Please help me :((