快读字符串
  • 板块学术版
  • 楼主tin_ingot
  • 当前回复13
  • 已保存回复13
  • 发布时间2022/6/10 20:37
  • 上次更新2023/10/27 23:36:12
查看原帖
快读字符串
553188
tin_ingot楼主2022/6/10 20:37

我的这种快读字符串有问题吗

int len;
for(len=0;1;len++)
{
    char c=getchar();
    if(c!='\n') s[len]=c;
    else break;
}
2022/6/10 20:37
加载中...