//break是结束整个循环体,continue是结束单次循环 比方说: while(x++ < 10) { if(x == 3) { break; } printf("%d\r\n", x); } 结果是输出 1 2 就退出了整个while循环 ……