gets函数

c语言中的gets函数的详细用法是怎样的

  • 喜欢学习网
  • 2024-12-07

gets()函数用来从标准输入设备(键盘)读取字符串直到换行符结束,但换行符会被丢弃,然后在末尾添加'\0'字符。其调用格式为:gets(s);...

阅读更多
    11