• 首页
  • 技术
    • C/C++
    • Linux
    • Android
    • Web
  • 随笔
  • 关于
  • 留言
C/C++

getchar,gets,fgets,scanf的用法与区别

首先,四个函数都可以从标准输入(键盘)读取字符串,并存储到指定内存空间(变量)中。 1、int getchar(void) 功能:返回从标准输入的下一个字符。 参数:无。 返回值:字符作为一个int型值被返回。 getc…

2018年7月12日 5条评论 4,990次阅读 4人点赞 阅读全文

搜索

分类

  • Android (4)
  • C/C++ (9)
  • Linux (29)
  • Web (4)
  • 生活随笔 (10)
  • 科技新鲜事 (2)
linux docker c git java LANG html5 输入 缓存 时间 date android 组件 activity intent 中文 ping netstat ifconfig route wordpress 优化 checkout stack cert root JNA kafka mysql canvas 技巧

Copyright 2026 博雅笔记. All Rights Reserved.
冀ICP备18025420号