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

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

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

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

linux 设置系统时间与时区

一、设置时间 1、显示时间? date 如果要显示中文,参考linux系统中文转换 2、设置时间 date -s 例:设置2018年7月11日16:00:10 —- date -s? “20180…

2018年7月11日 23条评论 2,573次阅读 0人点赞 阅读全文
  • «
  • <
  • 9
  • 10
  • 11
  • 12

搜索

分类

  • Android (4)
  • C/C++ (9)
  • Linux (31)
  • 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号