well assigning values like 250 or some value from console to a bool does not make any sense to me and obviously it does not make any sense to compiler also..but i figured your problem if you havent yet when you try to get a value into a bool from console your attempt is ignored and your variable does not change at all..maybe writing directly into a bool is not allowed or you have to cast it first.when i initilaze bln = true and i enter 0 i get 1 true and when i initilize it first to false and enter a non-zero i get 0 false as output also when i dont initliaze it output is some junk value like 204 on my machine and false..you have to cast the value to bool like that cin>>(bool)bln; when i do that everything works just as expected..
|