typedef struct Example
{
int x;
CString str;
}EXMP;
void Fun()
{
EXMP *stuTest;
CString strTemp;
CList clstExample;
stuTest.x = 1;
stuTest.str = L"ABC";
clstExample.AddTail(stuTest);
stuTest.x = 2;
stuTest.str = L"BCD";
clstExample.AddTail(stuTest);
POSITION pos;
pos = clstExample.GetHeadPosition(pos);
stuTest = &clstExample.GetNext(pos);
stuTest->x = 10;
stuTest->str = L"XXX";
}



