I am very new to C++ coding and a ran accross a bump in the road. I bought a beginners book called Beginning Visual C++ 6 by Ivor Horton. In the section about bit shiftting it explains how bit shifting works which I understand on a binary level. What I am having problems with is how to convert signed integers into binary. The book says that -104 as a signed int is represented by 1001 1000 in binary and -26 is represented by 1110 0110 but it does not explain how or why. I know how to convert between binary, HEX, OCT, and BCD from unsigned ints. Can anyone explain how to convert signed + and - ints into binary.
Any help is appreciated
Thank You.