给出2组字符串数组A=[QWERQWERQWERQWERQWER]
和B=[QWERREWQQWERREWQQWER] ,把A和B中的字符串4个为一组短开后,然后比较A和B中断开后的小字符串.看是否有想同的.如果A中有字符串和B中的字符串一样.输出1,否者输出0.
CString str1(A);
CString str2(B);
CString temp;
for(int i=0; i<str1.GetLength(); i+=4)
{
temp = str.Mid(i,4);
for(int j=0; j<str2.GetLength(); j+=4)
{
if( str.CompareNoCase( str2.Mid(j,4) ) == 0 )
return 1;
}
}