如何把getchar()取出的字符放回缓冲区呢???

milkcu 2013-06-13 09:40:25
如题,如何把getchar()取出的字符放回缓冲区呢???
...全文
424 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
milkcu 2013-06-13
  • 打赏
  • 举报
回复
错误票据 - 蓝桥杯 - MilkCu的专栏 - 博客频道 - CSDN.NET http://blog.csdn.net/milkcu/article/details/9090515 谢谢各位,谢谢ungetc(),问题解决了。。。
AnYidan 2013-06-13
  • 打赏
  • 举报
回复
int ungetc(int c, FILE *stream) ungetc pushes c (converted to an unsigned char) back onto stream, where it will be returned on the next read. Only one character of pushback per stream is guaranteed. EOF may not be pushed back. ungetc returns the character pushed back, or EOF for error.
图灵狗 2013-06-13
  • 打赏
  • 举报
回复
++
引用 1 楼 adlay 的回复:
有个 ungetc 函数
www_adintr_com 2013-06-13
  • 打赏
  • 举报
回复
有个 ungetc 函数

70,037

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧