Ver Mensaje Individual
  #8 (permalink)  
Antiguo 12/12/2010, 21:59
vnvnation
 
Fecha de Ingreso: marzo-2009
Mensajes: 74
Antigüedad: 15 años, 1 mes
Puntos: 1
Respuesta: Ayuda con métodos de búsqueda (listas simples, dobles, etc..)

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. }