热门

最新

红包

立Flag

投票

同城

我的

发布
m0_74408356
LI menghui123123
3 年前
truem0_74408356

#include<stdio.h>
#include<string.h>
int main(){
char c[20];
char b[20];
gets(c);
scanf("%s",&b);//当输入的数据含有空格时,scan会认为字符输入结束,但gets()不会
puts(c);
puts(b);
// c=getchar();
// sanf("%c",c);
// putchar(c);
// printf("%c",c);
return 0;
}

代码片段分享
CSDN App 扫码分享
分享
1
点赞
打赏
  • 复制链接
  • 举报
下一条:
1024过了。但IT永垂不朽
立即登录