//CString INSTR; // 输入字符串
const char *tmpchar = INSTR;
int nPos=0; // 取的偏移地址
for (int n=0; n<=(int)(tmp_userID.GetLength()/m_ChatStrLen); n++)
{
for (int i=0; i<m_ChatNum-1; ++i)
m_ChatTxt[i] = m_ChatTxt[i+1];
int tmpPos = nPos;
while (nPos<m_ChatStrLen*(n+1))
{
if (tmpchar[nPos]<0)
nPos++;
nPos++;
if (tmpchar[nPos] == '/0')
break;
}
m_ChatTxt[m_ChatNum-1] = tmp_userID.Mid(tmpPos, nPos);
}
中英文混入的字符串换办法
最新推荐文章于 2024-07-11 01:35:36 发布
6914

被折叠的 条评论
为什么被折叠?



