Ayuda urgente con programa en c
Hola! necesito ayuda urgente para programar en c con una lista enlazada. si alguien me puede ayudar me deja su correo y le envio la tarea que igual es larga :/
#include
#include
using namespace std;
struct Nodo{
int numero;
string letras;
struct Nodo*sgte;
struct Nodo*ante;
};
typedef struct Nodo*lista_doble;
Nodo*crear_Nodo(int valor,string caracter)
{
Nodo*aux;
aux=new(struct Nodo);
aux->numero= valor;
aux->letras= caracter;
aux->sgte = NULL;
aux->ante = NULL;
return aux;
}
void insertar_inicio(lista_doble &lis, int valor, string caracter)
{
lista_doble aux;
if(lis==NULL)
{aux = crear_Nodo(valor,caracter);
lis=aux;}
else
{aux = crear_Nodo(valor,caracter);
aux->sgte = lis;
lis->ante = aux;
lis = aux;}
}
void reportarLista(lista_doble lis)
{
int i= 0;
//cuenta los nodos q ay en la lista
while(lis != NULL)
{//INICIO DEL CICLO PARA RECORRER LISTA
cout numero = valor;
cout caracter;
p->letras = caracter;
}
ant = p;
p = p->sgte;
}
}
else
cout
#include
using namespace std;
struct Nodo{
int numero;
string letras;
struct Nodo*sgte;
struct Nodo*ante;
};
typedef struct Nodo*lista_doble;
Nodo*crear_Nodo(int valor,string caracter)
{
Nodo*aux;
aux=new(struct Nodo);
aux->numero= valor;
aux->letras= caracter;
aux->sgte = NULL;
aux->ante = NULL;
return aux;
}
void insertar_inicio(lista_doble &lis, int valor, string caracter)
{
lista_doble aux;
if(lis==NULL)
{aux = crear_Nodo(valor,caracter);
lis=aux;}
else
{aux = crear_Nodo(valor,caracter);
aux->sgte = lis;
lis->ante = aux;
lis = aux;}
}
void reportarLista(lista_doble lis)
{
int i= 0;
//cuenta los nodos q ay en la lista
while(lis != NULL)
{//INICIO DEL CICLO PARA RECORRER LISTA
cout numero = valor;
cout caracter;
p->letras = caracter;
}
ant = p;
p = p->sgte;
}
}
else
cout