I'm trying to convert my code from binary to morse code. So what I want to do is read two bits at a time then use the key I've created to change the zeros and ones to dashes and dots.
vector<std::bitset<8>> vec_b8
{
bitset<8>("01010110"),
bitset<8>("01010111"),
bitset<8>("01011000")
};
vector<std::bitset<2>> vec_b2;
bitset<2> b2;
for(auto b8 : vec_b8)
{
for(size_t i = b8.size() - 2; i > 0; --i) {