C++: view bit pattern
I was working on a hardware project, and I needed to be able to send a lot of data with only 12 bytes. Therefore when I needed to puzzle some bytes together, I opened up an online c++ compiler and got to testing quickly.
In C++ you can import a library called bitset
. It is useful when you want to print out your bitpattern and see the result when you are shifting bits. Here is an example:
This will output: