蓝桥杯基础练习VIP-字符串对比 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>#include<math.h>int main(){ int i…… 题解列表 2021年07月14日 0 点赞 0 评论 455 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比-题解(C语言代码) ```c#include#include#includeintmain(){chara[11],b[11];inti,len,type=0;//type作为标记,为1表示3,为0表示情况2scanf("%s",a);scanf("%s",b);if(strlen(a)!=strlen(b))//长度不 题解列表 2020年02月18日 0 点赞 0 评论 917 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比-题解(C语言代码) 思路:1.接收两个字符串,对两个字符串的长度进行比较,如果不相同则输出1,否则对两个字符串进行比较,两个完全相同则输出2,再否则如果大小写匹配,输出3,上述情况都不符合则输出4.参考代码:```#include#includeintmain(){chara[15], 题解列表 2020年02月19日 0 点赞 1 评论 1152 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比-题解(C语言代码) 迷惑的20%,以后再说吧() #include#include#include#includeintmain(){chara[1000],b[1000];gets(a);gets(b);intnumber=0,i=0;if(strcmp(a,b)==0){printf("2");return0;}if(strlen(a)!=str 题解列表 2020年02月22日 0 点赞 0 评论 913 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比-题解(C语言代码) 摘要:一步错补补错 int judge2(char a[],char b[]) { int lena=strlen(a); for(int i=0;i='A'&&a[i]='A'&…… 题解列表 2020年03月19日 0 点赞 0 评论 1123 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比-题解(C语言代码) ##解题思路:比较两个字符串的形式进行输出,串长不等输出1,串长相等输出2,小写串相等输出3,两串不等输出4。##注意事项:需要用到string.h头文件的字符串长度函数strlen和字符串比较函数strcmp,以及ctype.h头文件中的tolower函数将字母变小写,进而进行下一步的比较。 题解列表 2020年07月12日 0 点赞 0 评论 869 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char a[11],b[11]; cha…… 题解列表 2020年08月05日 0 点赞 0 评论 1344 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比-题解(C语言代码) 这题就4种情况:按照对应的情况输出即可。```cpp#include#include#includeusingnamespacestd;stringtolower(stringstr1){for(inti=0;i='A'&&str1[i]> 题解列表 2020年10月28日 0 点赞 0 评论 935 浏览 评分:0.0
C************************************ 摘要:#include <stdio.h>#include <string.h>#include <math.h>int main(){ int n1,n2,i,f; char s1[100],…… 题解列表 2021年03月23日 0 点赞 0 评论 546 浏览 评分:0.0
字符串对比。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>int main(){ c…… 题解列表 2021年04月10日 0 点赞 0 评论 518 浏览 评分:0.0