字符串的对比(超简单的c方法 ###所以为什么strcasecmp这个函数可以通过###但是stricmp和strcmpi不行呢###直接调用几个字符串的函数就好```c#include#include#includeintmain(){chara[20],b[20];scanf("%s%s", 题解列表 2021年12月03日 0 点赞 0 评论 651 浏览 评分:9.9
第一次看到使用toupper()函数 描述:C库函数inttoupper(intc)把小写字母转换为大写字母。函数说明:inttoupper(intc);//里面的c是要被转换的字母返回值:如果c有相对应的大写字母,则该函数返回c的大写字母,否则c保持不变。返回值是一个可被隐式转换为char类型的int值。 题解列表 2021年11月24日 0 点赞 0 评论 1004 浏览 评分:9.9
题解 1466: 蓝桥杯基础练习VIP-字符串对比 摘要:解题思路:分情况讨论注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s1[100],s2[100]; scanf("%s %…… 题解列表 2021年10月18日 0 点赞 0 评论 514 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>#include<math.h>int main(){ int i…… 题解列表 2021年07月14日 0 点赞 0 评论 456 浏览 评分:0.0
C++版本——常规思路 摘要: #include using namespace std; int main() { string a, b; cin >> …… 题解列表 2021年04月15日 0 点赞 0 评论 574 浏览 评分:0.0
优质题解 菜鸟的思路 摘要:解题思路: 一、先划分大的框架,从整体看 分为length相同和不相同。 二、lengthb不相同只有一种情况,那就是第1种情况。 三、length相同分为三种情况,而这三种情况又分…… 题解列表 2021年04月12日 0 点赞 3 评论 909 浏览 评分:7.3
字符串对比。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>int main(){ c…… 题解列表 2021年04月10日 0 点赞 0 评论 518 浏览 评分:0.0
python 字符串对比 摘要:解题思路:注意事项:参考代码:str1 = input()str2 = input()if len(str1) != len(str2): print(1)elif len(str1) == l…… 题解列表 2021年04月09日 0 点赞 0 评论 881 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比(C语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <stdlib.h>int main(){ char a[20], b[…… 题解列表 2021年03月31日 0 点赞 0 评论 645 浏览 评分:9.9
蓝桥杯基础练习VIP-字符串对比(简洁版) ```cpp#includeusingnamespacestd;stringa,b;intpanduan(stringa,stringb){if(a.size()!=b.size())//长度不等返回1return1;if(a==b)//ab完全相等返回2return2;for(inti=0;i 题解列表 2021年03月29日 0 点赞 0 评论 712 浏览 评分:0.0 « 12345678...1213 »