Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int alta (stCelda autores[], char autor[], int validos, nodoArbol * arbol)
- {
- int posicion =buscaPosEnArreglo(autores, autor,validos);
- nodoListaLibro * aux = crearNodoLista(arbol->nombreLibro,arbol->cantPags,arbol->genero,arbol->puntaje);
- if (posicion == -1)
- {
- validos = agregarEnArreglo(autores,autor,validos);
- posicion = posicion-1;
- }
- autores[posicion].listaLibros = agregarEnOrden(autores[posicion].listaLibros,aux);
- return validos;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement