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("") );

     

posted @ 2014-09-30 23:47  natata  阅读(337)  评论(0编辑  收藏  举报