Ver Mensaje Individual
  #9 (permalink)  
Antiguo 12/12/2010, 22:03
Avatar de ras_chalo
ras_chalo
 
Fecha de Ingreso: junio-2010
Mensajes: 369
Antigüedad: 13 años, 10 meses
Puntos: 6
Respuesta: Ayuda con métodos de búsqueda (listas simples, dobles, etc..)

Cita:
Iniciado por vnvnation Ver Mensaje
listas dobles men

Código C++:
Ver original
  1. typedef struct celda {
  2.    tElemento elemento;
  3.    struct celda *siguiente,*anterior;
  4. } tipocelda;
  5.  
  6. typedef tipocelda *tPosicion;
  7. typedef tipocelda *tLista;
  8. tLista Crear()
  9. {
  10.    tLista l;
  11.    
  12.        
  13.        
  14.    
  15.  
  16.    l = (tLista)malloc(sizeof(tipocelda));
  17.    if (l == NULL)
  18.     Error("Memoria insuficiente.");
  19.    l->siguiente = l->anterior = l;
  20.    return l;
  21. }

Muchas gracias!!
me sirve muchísimo !
tienes buena voluntad.
gracias deneuvo