1. 程式人生 > >提取字串中的指定內容

提取字串中的指定內容

功能:提取字串的"#"

CString  str = L"#ffffff";

while( str.Find( L"#" ) != -1 )

{

    CString nam_str = str.Left ( str.Find ( L"#" ) );

    str = str.Right ( str.GetLength() - nam_str.GetLength -1 );

}