Можешь. Не слушай этих неумёх. vector<vector< bool >> ascii_word{ {1,1,0,1,0,0,0}, {1,1,0,0,1,0,1}, {1,1,0,1,1,0,0}, {1,1,0,1,1,0,0}, {1,1,0,1,1,1,1} }; string word; for(vector< bool > const&ch:ascii_word) { int sum=0; for(bool const b:ch) sum<<=1, sum|=b; word.append(1,sum); }