Both are the same in C ++. However, your message is marked with c#and c++.
If you use C #, you need to use while (true) {...}. Personally, I prefer the same thing in C ++: numbers are only used when working with ... well, numbers! When working with Boolean values, trueand are used false.
source
share