I have one question, I have an array of unsigned chars and I want to print them but When I use cout a different value is printed.
The array contains values in binary format, no with 0 and 1 but whit the representation witch chars.
Array to print:
[0] 147 unsigned char
[1] 252 'ü' unsigned char
[2] 170 'ª' unsigned char
[3] 194 'Â' unsigned char
[4] 108 'l' unsigned char
What I got:
ô
ⁿ
¬
┬
l
when i write it into a file, the representation is correct because I open the ofstream in binay mode but I cannot find how to do the same in cout.
Best Regards