文章
4
粉丝
65
获赞
8
访问
4.7k
#include <bits/stdc++.h>
using namespace std;
int main()
{
char a[105]={0};//初始串
char b[105]={0};//全部小写串
char c[105]={0};//结果
char x[105] = {'t','a','n','t','a','n'};
char y[105] = {'b','a','i','b','a','i'};
scanf("%s",a);
int len = strlen(a);
int sum = 0;
for(int i=0;i<len;i++)
{
if(a[i] >= 'A' && a[i] <= 'Z')
{
b[i] = a[i]+32;
}else{
b[i] = a[i];
}
}
//printf("%s",b);
int len_b = strlen(b);
int len_x = strlen(x);
&nb...
登录后发布评论
暂无评论,来抢沙发