当前位置:网站首页>(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;
}
边栏推荐
- Introduction to asynchronous task capability of function calculation - task trigger de duplication
- The new data center helps speed up the construction of a digital economy with data as a key element
- [microservice openfeign] use openfeign to remotely call the file upload interface
- JS实现文字滚动 跑马灯效果
- STM32外接DHT11显示温湿度
- hbuildx中夜神模拟器的配置以及热更新
- Select sorting and bubble sorting template
- Pandora IOT development board learning (HAL Library) - Experiment 6 independent watchdog experiment (learning notes)
- JDBC 进阶
- Msgraphmailbag - search only driveitems of file types
猜你喜欢

Msgraphmailbag - search only driveitems of file types

Restore the subtlety of window position

ctf-pikachu-XSS

指针数组和数组指针

leetcode刷题:二叉树04(二叉树的层序遍历)

ctf-pikachu-CSRF
![Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure](/img/ba/c1d40de154344ccc9f2fd1dd4cb12f.png)
Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure

LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDebug”(main.obj 中)

用于TCP协议交互的TCPClientDemo

laravel admin里百度编辑器自定义路径和文件名
随机推荐
Flink学习6:编程模型
I Build a simple microservice project
Confession code collection, who says program apes don't understand romance
[Yugong series] go teaching course 002 go language environment installation in July 2022
[Huawei cloud IOT] reading notes, "Internet of things: core technology and security of the Internet of things", Chapter 3 (I)
Rhcsa-- day one
Huawei cloud Kunpeng engineer training (Guangxi University)
ctf-pikachu-XSS
CesiumJS 2022^ 源码解读[0] - 文章目录与源码工程结构
STM32 external DHT11 display temperature and humidity
毕业设计:设计秒杀电商系统
[microservice openfeign] use openfeign to remotely call the file upload interface
量子力学习题
一位毕业生的自我分享
Programmers' telecommuting is mixed | community essay solicitation
Spa in SDP
Katalon framework test web (XXVI) automatic email
Interpretation of leveldb source code skiplist
[paddleseg source code reading] paddleseg calculation dice
leetcode刷题:二叉树04(二叉树的层序遍历)