CStringList getAntiString(CString _strMain)
{
CStringList listSubStr;
CString strTemp = _strMain;
int iIndex = _strMain.Find(" "); for(int i=0;iIndex=-1;i++)
{
listSubStr.AddHead(strTemp.Left(iIndex));
strTemp = strTemp.Right(strTemp.GetLength() - iIndex);
int iIndex = strTemp.Find(" ");
} return listSubStr;
}编译错误为
f:\程序NET\LoverExplorer\LoverExplorer.cpp(318): error C2558: class“CStringList” : 没有可用的复制构造函数或复制构造函数声明为“explicit”