August 18, 2019, 03:24:01 pm

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


CIntegerList question

Started by Haim, January 16, 2009, 12:53:54 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Haim

Hello,
I am iterating through an integerlist:

for (pointer node=m_exitstack.getfirst();!node==null;node=m_exitstack.getnext(node))
{
....
}

I need to change the value of specific nodes.
I tried node->pdata=value but it does not work
can anyone show me how to change a value in a list node?

Thanks for any help,

Haim

sapero

CIntList still uses memory for integers, so try with *(_linked_list)node.*(int)pData = 99

Haim

Thank Sapero!
That solved it.

Haim