May 27, 2019, 01:18:13 am

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


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