解题思路:
注意事项:
参考代码:
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<math.h>
int main()
{
int i,flag;
char a[11],b[11];
scanf("%s%s",&a,&b);
if(strlen(a)!=strlen(b)) flag=1;
else
{
if(strcmp(a,b)==0) flag=2;
else
{
for(i=0;i<strlen(a);i++)
{
a[i]=tolower(a[i]);
b[i]=tolower(b[i]);
}
if(strcmp(a,b)==0) flag=3;
else flag=4;
}
}
printf("%d",flag);
return 0;
}
0.0分
0 人评分
C二级辅导-计负均正 (C语言代码)浏览:581 |
汽水瓶 (C语言代码)浏览:610 |
C语言训练-字符串正反连接 (C语言代码)浏览:622 |
C语言训练-求函数值 (C语言代码)浏览:938 |
这可能是一个假的冒泡法浏览:990 |
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)浏览:1039 |
C语言程序设计教程(第三版)课后习题5.5 (C语言代码)浏览:669 |
WU-整除问题 (C++代码)浏览:612 |
蛇行矩阵 (C语言代码)浏览:536 |
单词个数统计 (C语言代码)浏览:1012 |