Advertisement
Guest User

Untitled

a guest
May 24th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public void Salinti()
  2. {
  3. if (d == pr)
  4. {
  5. Mazgas s = pr;
  6. pr = pr.Kitas;
  7. s = null;
  8. }
  9. else {
  10. Mazgas s = d.Kitas;
  11. d.Duom = s.Duom;
  12. d.Kitas = s.Kitas;
  13. s = null;
  14. }
  15. }
  16.  
  17.  
  18. static void Išmesti(Sąrašas A, int zodSkaicius)
  19. {
  20. for (A.Pradzia(); A.Yra(); A.Kitas())
  21. {
  22. if (A.ImtiDuomenis().pavad > zodSkaicius){
  23. A.Salinti();
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement