会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
longwind's Blog
首页
新随笔
订阅
管理
2021年1月10日
C++里的getcahr()
摘要: https://www.dotcpp.com/oj/problem1094.html getchar()在这里用来捕获回车,先输入n的值,然后敲回车,缓冲区会有一个回车,getline()会读入,用getchar()读入回车,清空缓冲区。 #include<iostream> #include<st
阅读全文
posted @ 2021-01-10 22:15 longwind7
阅读(109)
评论(0)
推荐(0)