Bit management with bool

Hi! I have written this code, but I'm not sure that it's right because my program cannot compile, I don't know why. If someone could prove it and tell me if it works... Thank you

Last edited on

Please use code format tags around your code.

my program cannot compile
It compiles and runs for me. Ypu really should post the first error.
Last edited on
@HJ33475, do NOT edit your post and remove your code. That is rude and now no one can help you or know what your problem was.
Topic archived. No new replies allowed.