文章
61
粉丝
137
获赞
18
访问
39.5k
#include<bits/stdc++.h>
using namespace std;
int main(){
char s[100];
int judge ;
while( gets(s)){
judge = 1;
int len = strlen(s) ;
for(int i = 0 ;i < len ;i++){
if(judge == 1 && s[i] <= 'z' && s[i] >= 'a')
s[i] = (char) (s[i] - 32);
if(s[i] == ' ' || s[i] == '\n' || s[i] == '\t' || s[i] =='\r')
judge = 1;
else judge = 0;
}
cout << s;
}
}
登录后发布评论
暂无评论,来抢沙发