开发者

What is the boolean data type in C++ [closed]

开发者 https://www.devze.com 2023-03-24 08:59 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Clo开发者_JS百科sed 11 years ago.

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消