Binary1 CPP - Bitwise logical operation CPP - Bitwise logical operation // Bitwise logical operation in binary, octal, decimal, hexadecimal. #include #include #include using namespace std; int main() { int iInput1, iInput2; double dInput1, dInput2; /* Octal -> Binary -> Hexadecimal 87 / 2 = 43 --1 43 / 2 = 21 --1 21 / 2 = 10 --1 10 / 2 = 5 --0 5 / 2 = 2 --1 2 / 2 = 1 --0 64 +0 +16 +0 +4 +2 +1 = 87 (decimal) 1 0 1 0 1 1 1 4 +0 +1 | 0 +.. 2019. 4. 3. 이전 1 다음