strcmp的实现
来源:互联网 发布:老男孩教育大数据 编辑:程序博客网 时间:2024/06/05 00:47
int stringcmp(char *s1,char *s2)
{
while(*s1||*s2) //如果S1和S2比较完毕 (‘//0’)跳出循环;
{
if(*s1-*s2) //判断S1和S2对应的字符是不是不同;
return *s1-*s2; //如果不同,返回S1和S2的ASCII之差;
else // 如果相同,让指针指向S1和S2的下一个字符比较
{
s2++;
s1++;
}
}
return 0; // S1和S2相等的时候返回0;
}
- strcmp的实现
- strcmp函数的实现
- strcmp的实现原型
- strcmp函数的实现
- strcmp函数的实现
- strcmp函数的实现
- strcmp的实现
- strcmp的递归实现
- memcpy & strcmp的实现
- strcmp函数的实现
- strcmp函数的实现
- strcmp函数的实现
- strcmp函数的实现
- strcmp函数的实现
- 函数strcmp的实现
- strcmp的实现
- strcmp函数的实现
- strcmp的实现
- ITS-CMS 2.0 URL设计构想
- 诗律表——五绝
- 诗律表——五律
- 诗律表——七绝
- 诗律表——七律
- strcmp的实现
- windows消息大全
- 平水韵表
- 曲谱表——曲谱列表
- ORA-14185: incorrect physical attribute specified for this index partition
- 汇编语言超浓缩教程
- [JS]详尽解析window.event对象
- my dream of 14-Apr-2006
- 关注话题