您当前的位置: 首页 >  c++

ZhangJiQun&MXP

暂无认证

  • 2浏览

    0关注

    1187博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

c++中的boolean和bool有什么不同

ZhangJiQun&MXP 发布时间:2019-11-09 09:43:09 ,浏览量:2

bool是c++中的一个关键字,属于c++类型的一种 boolean是定义来的,下面是boolean的类型定义

 

代码:

#include using namespace std; int main() {     bool start =-100;//将被转换为true     bool stop = 0; //将被转换为false     int ans = true;     int promise =false;     bool b = 100;    //bool b = ture;(没有true)不是0则是ture是 1     bool c = false;     cout

关注
打赏
1665659684
查看更多评论
立即登录/注册

微信扫码登录

0.1123s