Skip to content

Commit

Permalink
agregar adelante en una lista
Browse files Browse the repository at this point in the history
  • Loading branch information
OmgCopito95 committed Sep 12, 2020
1 parent 90588c2 commit ad5657f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions LISTAS/agregar_adelante.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// AGREGAR ADELANTE EN UNA LISTA

procedure agregarAdelante(var l:lista; dato:integer);
var
nue: lista;
begin
new(nue);
nue^.dato := dato;
nue^.sig := l;
l := nue;
end;

0 comments on commit ad5657f

Please sign in to comment.