MFC中findstringexact和findstring函数的用法是怎样的?求高手指点!
1个回答
展开全部
findstringexact 用于寻找完全符合字符串,findstring用于找前缀符合字符串,举个例子:
一列表里有:
0. abc123
1. def456
2. ghi789
findstringextract(0,"abc123") => 0
findstringextract(0,"def456") => 1
findstringextract(0,"ghi") => -1
findstring(0,"bc1") => -1
findstring(0,"abc") => 0
findstring(0,"def456") => 1
findstring(0,"ghi") => 2
一列表里有:
0. abc123
1. def456
2. ghi789
findstringextract(0,"abc123") => 0
findstringextract(0,"def456") => 1
findstringextract(0,"ghi") => -1
findstring(0,"bc1") => -1
findstring(0,"abc") => 0
findstring(0,"def456") => 1
findstring(0,"ghi") => 2
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询