What is the boolean data type in C++ [closed]
I'm doing some exercise where I need to use a boolean. However when I try to create one as Boolean
the compiler does not accept it. What is the name of the boolean type in C++?
The boolean datatype in C++ is bool
as in:
bool myBool = true;
精彩评论