getchar的惯用法

//跳过这一行剩余的字符 包括换行符
while(getchar() != '\n');

posted @ 2025-07-22 13:59  小白正在学习  阅读(5)  评论(0)    收藏  举报