I have a linked list where each node contains information of a computer equipment ie brand, processor, etc. leaving something like this:
Node1: Brand, processor, color.
Node2.Marca processor, color.
struct nodo{
string marca;
string procesador;
struct nodo *sgte;
};
void insertar(Milista &lista, string marca, String procesador)
{
Milista q;
q = new(struct nodo);
q->marca=marca;
q->procesador procesador;
q->sgte = lista;
lista = q;
}
and I have my function that prints it
void reportarLista(Milista lista)
{
int i = 0;
while(lista != NULL)
{
cout << lista->marca << lista->procesador << endl;
lista = lista->sgte;
i++;
}
}
There is some way to print a node in specific, I mean something similar to when you print an arrangement in such a position, that is, partially print the list.
Thanks