#include<iostream>
using namespace std;
int main()
{
bool flag = true;
cout << "bool类型占" << sizeof(flag) << "字节" << endl;//bool类型占1个字节
system("pause");
return 0;
}
#include<iostream>
using namespace std;
int main()
{
bool flag = true;
cout << "bool类型占" << sizeof(flag) << "字节" << endl;//bool类型占1个字节
system("pause");
return 0;
}
本文标题:9.bool类型
本文链接:https://www.haomeiwen.com/subject/qfjawktx.html
网友评论