Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. int lista_ordenada_contmaiores(lista l, string valor){
  2.  
  3. nodo *p = l.inicio;
  4. int maiores=0;
  5.  
  6. while(p != nullptr) {
  7.  
  8. if(p->info > valor){
  9. maiores++;
  10. }
  11. p = p->elo;
  12. }
  13.  
  14. return maiores;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement