Answer the question
In order to leave comments, you need to log in
What is the correct way to specify an argument in a while loop in C++?
Hello! Started learning C++. I have a question here. How to pass a global bool variable as an argument to a while loop.
bool exit = false;
while (!::exit){
//что-то
}
Answer the question
In order to leave comments, you need to log in
For your while to work, you need the condition in brackets to be true, which means exit = true and your "wile" works
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question