#include <stdio.h>
//while语句扩展
//这里的代码适当的修改是可以用来为清理缓冲区的
int main()
{
int ch = 0;
while ((ch = getchar()) != EOF)
putchar(ch);
return 0;
}
while语句扩展1
原创
©著作权归作者所有:来自51CTO博客作者小鹿瑶瑶的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:while语句扩展2
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
python基础-条件语句、while、字符串格式化、运算符、字符串编码
学习Python基础的笔记,看视频学Python。
字符串 Python 代码块 python基础 -
循环语句while语句
循环语句
#include #define -
while(1)
没有
职场 死循环 休闲