Move to move forward when pressing left and right mouse button at the same time in c++?

first I get an error in on the “BindKey” in the cpp file, how to I fix that?
Second, How do I set a bool in c++?