当前位置:网站首页>(pointeur) Écrivez - vous une fonction qui compare la taille de la chaîne et fonctionne comme strcmp.
(pointeur) Écrivez - vous une fonction qui compare la taille de la chaîne et fonctionne comme strcmp.
2022-07-04 04:19:00 【Je ne suis pas xiaohai.】
int strcmps(const char *s1,const char *s2)
{
while(*s1!='\0'&& *s2!='\0')
{
if(*s1>*s2)
return 1;
else if(*s1<*s2)
return -1;
s1++;
s2++;
}
if(*s1>*s2)
return 1;
else if(*s1<*s2)
return -1;
return 0;
}
边栏推荐
- 网络 - VXLAN
- 智慧地铁| 云计算为城市地铁交通注入智慧
- Katalon framework tests web (XXI) to obtain element attribute assertions
- Activiti7 task service - process variables (setvariable and setvariablelocal)
- pytest多进程/多线程执行测试用例
- ctf-pikachu-XSS
- leetcode刷题:二叉树07(二叉树的最大深度)
- 02 specific implementation of LS command
- Lnk2038 detected a mismatch of "runtimelibrary": the value "md_dynamicrelease" does not match the value "mdd_dynamicdebug" (in main.obj)
- PostgreSQL users cannot create table configurations by themselves
猜你喜欢
Flink学习8:数据的一致性
ctf-pikachu-CSRF
Katalon中控件的参数化
02 specific implementation of LS command
Reduce function under functools
leetcode刷题:二叉树09(二叉树的最小深度)
Tcpclientdemo for TCP protocol interaction
[Logitech] m720
Understand the principle of bytecode enhancement technology through the jvm-sandbox source code
Idea configuration 360zip open by default -- external tools
随机推荐
新型数据中心,助力加快构建以数据为关键要素的数字经济
Katalon使用script实现查询List大小
2022-07-03: there are 0 and 1 in the array. Be sure to flip an interval. Flip: 0 becomes 1, 1 becomes 0. What is the maximum number of 1 after turning? From little red book. 3.13 written examination.
北漂程序员,月薪20K,一年攒15W,正常吗?
软件测试是干什么的 发现缺陷错误,提高软件的质量
Simple dialogue system -- text classification using transformer
I was tortured by my colleague's null pointer for a long time, and finally learned how to deal with null pointer
Katalon框架测试web(二十一)获取元素属性断言
SDP中的SPA
Illustrated network: what is the hot backup router protocol HSRP?
leetcode刷题:二叉树06(对称二叉树)
DP83848+网线热拔插
毕业总结
透过JVM-SANDBOX源码,了解字节码增强技术原理
Flink学习7:应用程序结构
02 specific implementation of LS command
[csrf-01] basic principle and attack and defense of Cross Site Request Forgery vulnerability
华为云鲲鹏工程师培训(广西大学)
leetcode刷题:二叉树07(二叉树的最大深度)
leetcode刷题:二叉树09(二叉树的最小深度)