hdu 1161 Eddy's mistakes
#include<stdio.h> #include<string.h> int main( ) { char str[1024] = {0}; while( ( gets( str ) ) ) { int i = 0; while( str[i] ) { if( str[i] >= 'A' && str[i] <= 'Z' ) str[i] += 32; ++i; } printf( "%s\n",str ); memset( str,0,sizeof( str ) ); } return 0; }
本人还是新手 ,转载请注明来自Lvsi‘s home