c语言-continue

一.continue函数意义

用于跳过本次循环余下语句,转去判断是否需要执行下次循环

二.continue使用案例

编写代码,对用户的非法输入做适当处理

char ch;
while ( ch = getchar() ) !='\n'
    continue;

猜你喜欢

转载自www.cnblogs.com/renren-study-notes/p/10236968.html