I was under the impression thatwould change my_bool from true to false or false to true... does it not work this way?Code:!my_bool;
This is a discussion on !my_bool vs bool=false within the C++ Programming forums, part of the General Programming Boards category; I was under the impression that Code: !my_bool; would change my_bool from true to false or false to true... does ...
I was under the impression thatwould change my_bool from true to false or false to true... does it not work this way?Code:!my_bool;
Asking a question you already know the answer to might teach you something you did not know...
I guess I should have included more code:...but it appears I had a different problem, which I found.Code:bool my_bool = true; do { //... if, else if,... else { my_bool = !my_bool; } }while(my_bool);tyvm for the reply
Asking a question you already know the answer to might teach you something you did not know...