0
点赞
收藏
分享

微信扫一扫

2.8数据的输入

狐沐说 2022-05-04 阅读 72
#include <iostream>
using namespace std;

int main()
{
	//1.整型
	/* int a = 0;
	cout << "a=" << endl;
	cin >> a;
	cout << "a=" << a << endl;
	*/

	//2.浮点型
	//float f = 3.14f;
	//cout << "f=" << endl;
	//cin >> f;
	//cout << "f=" << endl;
	//3.字符型

	//4.字符串型

	//5.布尔类型


	system("pause");
	return 0;
}

# 2.7布尔类型

#include <iostream>
using namespace std;

int main2_7()
{
	bool flag = true;
	cout << flag << endl;
	cout << sizeof(flag) << endl;
	system("pause");
	return 0;
}
举报

相关推荐

0 条评论