불 bool
Bool 불 타입
실습 예제
ch05ex2_bool.cpp
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
bool bo;
bo = true;
cout << bo << endl; // 1
bo = false;
cout << bo << endl; // 0
return 0;
}Last updated