题解 1466: 蓝桥杯基础练习VIP-字符串对比

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

第一次看到使用toupper()函数

摘要:描述:C 库函数 int toupper(int c) 把小写字母转换为大写字母。 函数说明:int toupper(int c); //里面的c是要被转换的字母 返回值: 如果 c 有相……

字符串的对比(超简单的c方法

摘要:###所以为什么strcasecmp这个函数可以通过 ###但是stricmp和strcmpi不行呢 ###直接调用几个字符串的函数就好 ```c #include #includ……

字符串对比

摘要:参考代码1#include<iostream> #include<math.h> #include<string.h> #include<stdlib.h> using namespace s……

字符串对比

摘要:解题思路:# 输入两个字符串 str1 = input() str2 = input() # 先比较两个字符串长度,如果长度不同,返回1 # 如果长度相同,再比较两个字符串是否相等,如果相等,……