16,472
社区成员
发帖
与我相关
我的任务
分享
int GetTotal(CString Feedback)
{
char* buf = new char[Feedback.GetLength()+1];
int i=0, n=0;
unsigned char p;
memset(buf, 0, Feedback.GetLength()+1);
sprintf(buf, Feedback);
while(n<Feedback.GetLength())
{
p = buf[n];
if(p>0x7f)
i+=1;
n++;
}
delete [] buf;
return Feedback.GetLength()-i+i/2;
}
str.GetLength();