misaka100 @ 2021-11-21 22:38:51
这是上一道题用gets就可以过
gets(ch);
for (int i = 0; i<strlen(ch); i++)
{
if (ch[i]>=97 && ch[i]<=122)
{
ch[i]-=(97-65);
}
}
puts(ch);
by 就这样不改了 @ 2021-11-21 23:15:51
@misaka100 ...gets都淘汰了(\
你试试scanf("%s",ch);
by misaka100 @ 2021-11-21 23:26:06
@就这样不改了 可是scanf不能输入空格怎么办啊
by 就这样不改了 @ 2021-11-21 23:43:58
@misaka100 没空格啊(
by zimindaada @ 2021-11-22 13:39:29
@就这样不改了 试试getline
by court_tour @ 2021-12-26 21:39:35
我用的gets可以啊