what does while(true) mean in c++ code example
Example 1: how to define a while statement in c++
while(condition)
{
statement(s);
}
Example 2: c++ while true
while (true) { // or 1/true
//do stuff
}
while(condition)
{
statement(s);
}
while (true) { // or 1/true
//do stuff
}