提取字符串中的指定内容

功能:提取字符串的"#"

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

}

猜你喜欢

转载自blog.csdn.net/qq_32716885/article/details/80270950
今日推荐