9 Jul
2003
9 Jul
'03
1:44 p.m.
I'm guessing this should be
std::cout << "Optimal CRC-8 : " << std::hex << (unsigned)crc_8() << std::endl;
The way iostreams format chars is most likely not what you wanted. True enough - and that includes signed vs. unsigned chars (both are handled
Vladimir Prus wrote: the same, at least with my compiler). The result needs to be put into an unsigned *int* for cout to display the numeric value. -- Jim