i make push procedure but its not working, there something wrong with my code??
please see my following push procedure :
procedure PUSH (var T: Stack; var Full: boolean;
X: integer);
begin
if T.Top = MaxElemen then
Full := true
else
begin
T.Top := inc(T.Top);
T.Contain[T.Top] := X
end
end;