How to loop to get all the values of the list starting from the first one? For example, to print them to f-her Print
#include
CLinkedList<string> list;
int OnInit()
{
list.AddLast ("Vasya");
list.AddLast ("Petya");
list.AddLast ("Dima");
list.AddLast ("Vika");
return(INIT_SUCCEEDED);
}
olegeskevich
Thanks))
fxsaber
CLinkedListNode<string>* Item = list.Head();
for (int i = list.Count() - 1; i >= 0; i--, Item = Item.Next())
Print(Item.Value());