//去掉字符串数组中相同的字符串
void DelSame(CStringArray *src,CStringArray *dest)
{
CString tmp;
volatile int realcnt = 0;
volatile int j = 0;
dest->Add(src->GetAt(0));
realcnt = 1;
for(int i = 1 ; i < src->GetSize();++i)
{
for(j = 0; j < realcnt;++j)
{
if(src->GetAt(i) == dest->GetAt(j))
{
break;
}
}
if(j == realcnt)
{
dest->Add(src->GetAt(i));
realcnt++;
}
}
}
可以借鉴一下这个