int HashKey(const CString& str)
{
CString temp=str;
int hash=0;
temp.MakeUpper();
TCHAR * pStr=temp.GetBuffer();
int len=lstrlen(pStr);
for(int i=0;i<len;i++)
{
hash+=(int)pStr[i];
}
str.ReleaseBuffer();
return hash;
}
{
CString temp=str;
int hash=0;
temp.MakeUpper();
TCHAR * pStr=temp.GetBuffer();
int len=lstrlen(pStr);
for(int i=0;i<len;i++)
{
hash+=(int)pStr[i];
}
str.ReleaseBuffer();
return hash;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货