标签:sam script std while 字母 包含 show ott its
http://acm.hdu.edu.cn/showproblem.php?pid=2026
#include <bits/stdc++.h>
using namespace std;
char s[111];
int main()
{
while(gets(s))
{
int len = strlen(s);
if(s[0]>=‘a‘&&s[0]<=‘z‘)
s[0]=s[0]-32;
for(int i=0; i<len; i++)
{
if(s[i]==‘ ‘)
s[i+1]-=32;
}
for(int i=0; i<len; i++)
{
printf("%c",s[i]);
}
cout<<endl;
}
return 0;
}
标签:sam script std while 字母 包含 show ott its
原文地址:https://www.cnblogs.com/zlrrrr/p/9221866.html