Alx09

Untitled

Oct 28th, 2020
1,063
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. //Model functie cautare intr-o lista simpla inlanuita
  2.  
  3. void Caut(Lista *head, string nume){
  4.     Lista *q = head;
  5.     while(q && q->nume != nume) q= q->urm;
  6.     if(q && q->nume == nume) q->afiseaza;
  7.     else cout <<"Nu s-a gasit elementul\n";
  8. }
Advertisement
Add Comment
Please, Sign In to add comment