Like in any other programming language, there's a type in C++ that tells us if something is true or not: bool.

How would we assign a boolean value here?

See that? Boolean values can only be true and false. But why on Earth are they displayed as 1 and 0?

Close, but bool values are only capable or expressing values of truth or falseness, nothing in-between.