while (1) Loops in C++ - Java samples - Programming tutorials on Java, C, C++, PHP, ASP

while (1) Loops in C++ - Java samples - Programming tutorials on Java, C, C++, PHP, ASP

瀏覽:1388
日期:2025-04-27
The condition tested in a while loop can be any valid C++ expression. As long as that condition remains true, the while loop will continue. You can create a loop that will never end by using the number 1 for the condition to be tested. Since 1 is always t...看更多