How to print (using cout) a number in binary form?

I’m following a college course about operating systems and we’re learning how to convert from binary to hexadecimal, decimal to hexadecimal, etc. and today we just learned how signed/unsigned numbers are stored in memory using the two’s complement (~number + 1). We have a couple of exercises to do on paper and I would like … Read more