最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void strupr(char a[]){ int i; for(i=0;a[i]!=…… 题解列表 2024年12月08日 1 点赞 0 评论 477 浏览 评分:0.0
1466-c语言题解 ```c#include#include#include#defineMAX11intmain(){chars1[MAX],s2[MAX];scanf("%s%s",s1,s2);intlen1=strlen(s1),len2=strlen(s2);//如果两个字符串长度不同, 题解列表 2024年08月26日 0 点赞 0 评论 376 浏览 评分:0.0
编写题解 1466: 蓝桥杯基础练习VIP||不用strcmp; 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[2][11] = { 0 }; gets(ar…… 题解列表 2024年03月26日 0 点赞 0 评论 475 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比 解题思路:1.此题主要是把四个条件可以分开考虑,首先条件一和其他三个条件是不相同的,其他三个条件都是字符数量相同的,所以就把条件一和其他三个条件给区分开来了;2.然后对剩下的三个条件进行考虑,发现条件二不仅需要字符数量相同还需要ascll码相同, 题解列表 2024年03月23日 0 点赞 0 评论 831 浏览 评分:8.0
蓝桥杯基础练习VIP-字符串对比 (C) 摘要:注意事项:1.该题目不允许使用gets()函数(在新的C标准中已经废弃),fgets函数会读入'\n'符不是很方便,考虑使用scanf("%s\n%s",&a,&b)。2.该题目不允许…… 题解列表 2024年02月12日 0 点赞 0 评论 706 浏览 评分:9.9
蓝桥杯基础练习VIP-字符串对比 摘要:解题思路:如果两个字符串的长度不相等,输出 "1"。如果两个字符串的长度相等,并且在区分大小写的情况下完全相等,输出 "2"。如果两个字符串的长度相等,但在不区分大小写的情况下相等,输出 "3"。如果…… 题解列表 2023年11月29日 0 点赞 0 评论 589 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <ctype.h>#define maxn 100char s1[maxn],…… 题解列表 2023年04月16日 0 点赞 0 评论 380 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比(C语言) 摘要:#include<stdio.h> #include<ctype.h>//tolower函数引用所需的头文件 #include<string.h> int main() { char st…… 题解列表 2023年01月06日 0 点赞 0 评论 499 浏览 评分:0.0
1466: 蓝桥杯基础练习VIP-字符串对比 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { int a,b,i,flag=0,be=0,de=0,k=0;…… 题解列表 2022年06月24日 0 点赞 0 评论 441 浏览 评分:0.0
1466: 蓝桥杯基础练习VIP-字符串对比 摘要:方法一: ```c #include #include #include void main() { char arr[10], brr[10]; scanf("%…… 题解列表 2022年02月09日 0 点赞 0 评论 587 浏览 评分:9.9