List<MyClass*> & array question
- by Nano HE
Hi, Assuming a definition like this,
list<MyCommand*> subList
...
MyCommand* pCmd = (MyCommand*)(m_treeSM.GetItemData(node));
I tried these statements below, but failed.
pCmd->subList[2]
(pCmd->subList)[2]
How can I get the array member values(such as subList[2]). I want to replace the value of subList[2] with other same type value. Thank you.