Advertisement
melissaUllua

Untitled

Nov 18th, 2019
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. int alta (stCelda autores[], char autor[], int validos, nodoArbol * arbol)
  2. {
  3. int posicion =buscaPosEnArreglo(autores, autor,validos);
  4. nodoListaLibro * aux = crearNodoLista(arbol->nombreLibro,arbol->cantPags,arbol->genero,arbol->puntaje);
  5. if (posicion == -1)
  6. {
  7. validos = agregarEnArreglo(autores,autor,validos);
  8. posicion = posicion-1;
  9. }
  10. autores[posicion].listaLibros = agregarEnOrden(autores[posicion].listaLibros,aux);
  11.  
  12. return validos;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement