最普通的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int strcmp_(char a[],char b[]){ int len1,len2; …… 题解列表 2024年12月27日 0 点赞 0 评论 402 浏览 评分:0.0
蓝桥杯算法训练VIP-比较字符串-题解(C语言代码) 摘要:#include #include int main() { char a[100],b[100]; scanf("%s%s",a,b); if(strcmp(a,b)==0) …… 题解列表 2019年07月02日 0 点赞 0 评论 1042 浏览 评分:0.0
蓝桥杯算法训练VIP-比较字符串-题解(C语言代码) 摘要:```c #include #include int main() { char a[100],b[100]; int i,alen,blen; scanf("%s %s",…… 题解列表 2020年02月09日 0 点赞 0 评论 1143 浏览 评分:0.0
蓝桥杯算法训练VIP-比较字符串-题解(C语言代码) 思路:用字符数组接收两个字符串,再对字符进行逐个比较,如果不相同,输出两个字符的差值,跳出循环,否则继续,直至两个字符串比较结束,每个字符都相同则输出0.注意:进行比较时的长度为两个字符串长度的最大值.```#include#includeintmain(){chara[105], 题解列表 2020年02月19日 0 点赞 0 评论 1148 浏览 评分:0.0
蓝桥杯算法训练VIP-比较字符串-题解(C语言代码) 摘要://easy! int main() { char s1[103]; char s2[103]; scanf("%s",s1); scanf("%s",s2…… 题解列表 2020年03月18日 0 点赞 0 评论 927 浏览 评分:0.0
蓝桥杯算法训练VIP-比较字符串 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char b[101],a[101]; scanf("%s …… 题解列表 2024年12月21日 0 点赞 0 评论 418 浏览 评分:0.0
简单易懂(c语言代码) 摘要:```c #include #include #define max(a,b) (a>b?a:b) // 宏定义,返回两个值中的较大者 #define MAX 101 …… 题解列表 2024年08月25日 1 点赞 0 评论 504 浏览 评分:0.0
比较字符串(C语言) 摘要:#include<stdio.h> #include<string.h> int main() { char s1[100], s2[100]; char* p1 = s1, * p2 …… 题解列表 2023年01月06日 0 点赞 0 评论 470 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str1[101], str2[101]; scanf…… 题解列表 2023年07月03日 0 点赞 0 评论 803 浏览 评分:0.0
比较字符串(嘿嘿,这题嘛,其实可以输出strcmp的返回值的,返回值就是字典序差) 摘要:解题思路: 怎么说,是不是很方便 参考代码: ```c #include #include int main() { char s1[101],s2[101]; scanf("%…… 题解列表 2023年12月21日 0 点赞 0 评论 490 浏览 评分:0.0