rornoanparn

Untitled

Feb 24th, 2020
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. address search(List L, infotype X){
  2.     P = first (L)
  3.     while ( info (P) != data) AND ( next(P) != NULL) do
  4.         P = next(P);
  5.     If (info (P) = data) than
  6.         return P;
  7.     else
  8.         return NULL;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment