SOLUCIÓN AL EJERCICIO Nš 1 DE LISTAS,PILAS Y COLAS


Una implementación para esta función puede ser:

void BorrarValor(Lista L,int n)
{
  int aux;
  Posicion p;

  for(p=PrimeroLista(L);p!=FinLista(L);){
    Recuperar(&aux,p,L);
    if (aux==n)
      BorrarElemento(p,L);
    else p=Siguiente(p,L);
  }
}