i like acm i want to get an accepted
I Like Acm I Want To Get An Accepted源代码:#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { int i; char str[101]; while(gets(str)) { for(i=0;i<strlen(str);i++) if(i==0||str[i-1]==‘ ‘) printf("%c",str[i]-32); else printf("%c",str[i]); printf("\n"); } system("pause"); return 0; }
原文地址:http://blog.csdn.net/zchlww/article/details/41556355