strcmp函数实现
intStrCmp(constchar*des,constchar*src)

...{
intc;
if(des==NULL||src==NULL)
throw"NULLpoint";
intlen1=strlen(des);
intlen2=strlen(src);
if(len1!=len2)

...{
returnlen1-len2;
}
while(*des!='/0')

...{
if((c=(*des++-*src++))!=0)

...{
returnc;
}
}
returnc;
}

测试用例:
1.字符串为AscII串,并且src和des不为空,测试中以src和des长度分类
2.字符串为高AscII串.....
3.字符串为DBCS串
4.字符串中包含DBCS和ASCII
5.src或者des为NULL
6.src和des为""