c++中copychars是什么意思

2024-11-21 10:02:55
推荐回答(1个)
回答1:

copychars是字符拷贝的意思。。
使用方法:
CSimpleString str(_T("xxxxxxxxxxxxxxxxxxx"), 20, pMgr);
TCHAR* pszSrc = _T("Hello world!");

_tprintf_s(_T("%s\n"), str);

str.CopyChars(str.GetBuffer(), pszSrc, 12);
_tprintf_s(_T("%s\n"), str);