stl 常用代码

  • CString类型的replace
    int pos = 0;
    while((pos = it->m_strFile.find(_T("%UC_INSTALL_ROOT%\"), pos)) != it->m_strFile.npos)
        it->m_strFile.replace(pos, _tcslen(_T("%UC_INSTALL_ROOT%\")), _T("") );
原文地址:https://www.cnblogs.com/cartler/p/3958313.html