-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlistas.h
More file actions
40 lines (29 loc) · 1010 Bytes
/
listas.h
File metadata and controls
40 lines (29 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef LISTAS_H_INCLUDED
#define LISTAS_H_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "usuario.h"
typedef struct _nodo
{
usuarioLista dato;
struct _nodo * siguiente;
} nodo;
// FUNCIONES ELEMENTALES
nodo * iniclista(nodo *);
nodo * crearnodo(usuarioLista );
nodo * agregarPrin(nodo *, nodo *);
nodo * agregarFinal(nodo * lista, nodo * nuevoNodo);
nodo * buscarUltimo(nodo * lista);
nodo * borrarNodo(char nombre[30], nodo * lista);
nodo * agregarEnOrden(nodo * lista, nodo * nuevoNodo);
nodo * borrarTodaLaLista(nodo * lista) ;
nodo * subprogramaBusquedaDeUnNodo(nodo * lista);
nodo * buscarNodo(char nombre[], nodo * lista);
//FUNCIONES RECURSIVAS
void recorrerYmostrarRecursivo(nodo * lista);
void MostrarParesRecursivo(nodo* lista);
nodo* InvertirListaRecursivo(nodo *lista);
nodo* BorrarNodoRecursivo(nodo* lista, char nombre[]);
nodo* InsertarNodoRecursivo(nodo* lista, nodo* nuevo);
#endif // LISTAS_H_INCLUDED