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

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

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

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

搜索

分类目录

  • Android (1)
  • C/C++ (1)
  • Linux (3)
  • Web (1)
  • 生活随笔 (3)
linux html5 c 输入 缓存 时间 date android 组件 LANG activity 中文 canvas ping netstat ifconfig route wordpress intent 优化

Copyright 2021 博雅空间-520的个人博客. All Rights Reserved.
冀ICP备18025420号