法国协和广场:谁能给看看这段mfc聊天程序的代码,很短一段。

来源:百度文库 编辑:神马品牌网 时间:2024/04/30 00:39:23
for (POSITION pos1 = m_msgList.FindIndex(pSocket->m_nMsgCount); pos1 != NULL;)
{
CString temp = m_msgList.GetNext(pos1);
msg.m_msgList.AddTail(temp);
}
for (POSITION pos1 = m_msgList.FindIndex(pSocket->m_nMsgCount); pos1 != NULL;)
这个句子什么意思啊?

开始时 pos1 = m_msgList.FindIndex(pSocket->m_nMsgCount);
循环直到 pos1 == NULL
循环中 改变pos1 的值 :
m_msgList.GetNext(pos1);