I'm trying to add a single 1 bit to a string, however, it seems that I keep getting the char converted to an int. I've tried typecasting it to an unsigned char, but I think that it's still converting it.
string output = "abc";
output += 0x80;
for (char c : output) printf("%02x", c);
I keep getting 616263ffffff80. However, I'm trying to get it to be 61626380;