I am trying to print hex values for member[0] and member[1] and integer values for _records in the same text file with the following code:
std::ofstream myoutputfile;
myoutputfile << std::hex << (int)(unsigned char)_member[0] << ' ';
myoutputfile << std::hex << (int)(unsigned char)_member[1] << ' ';
myoutputfile<<_records << std::endl;
But this code prints _records in hex too. I have tried:
myoutputfile<<(int)_records << std::endl;
But still it prints it in hex.
Can anyone help please.