본문 바로가기

카테고리 없음

bool

#include "stdafx.h"

#include <iostream>

#include <string>


using namespace std;


void Print(const char *str, bool endl = false) {

cout << str;


if (endl) cout << std::endl;


return;


}


int main(void) {

bool condition = 0;


cout << "sizeof(bool) = " << sizeof(condition) << endl;

}