<分区>
输入:
hi my name is john
how are you
thanks.
期望的输出:
himynameisjohnhowareyouthanks
我的代码是:
int main(void){
{
char *strptr = "";
int i = 0;
while(EOF){
while(islower(getchar())==true){
strcat(strptr,tolower(getchar()));
}
printf("%s",strptr);
}
}
}
我该怎么做?谢谢。