Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int lista_ordenada_contmaiores(lista l, string valor){
- nodo *p = l.inicio;
- int maiores=0;
- while(p != nullptr) {
- if(p->info > valor){
- maiores++;
- }
- p = p->elo;
- }
- return maiores;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement