Advertisement
ridjis

skrati za e

Apr 3rd, 2014
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. PROCEDURE skracujeZaE(VAR lista : brojevi; br : INTEGER);
  2. VAR
  3. temp, tekuci : brojevi;
  4. lsize, izbrisati, brojac : INTEGER;
  5. BEGIN
  6. temp := lista;
  7. lsize := size(lista);
  8. izbrisati := lsize - br;
  9. brojac :=0;
  10. WHILE brojac < izbrisati DO
  11. tekuci := temp^.veza;
  12. DISPOSE(temp);
  13. temp := tekuci;
  14. INC(brojac);
  15. END;
  16. lista := temp;
  17. END skracujeZaE;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement