有没有办法将十六进制转换/转换为十进制并将十六进制转换为字符?例如,如果您有:
string hexFile = string(argv[1]);
ifstream ifile;
if(ifile)
ifile.open(hexFile, ios::binary);
int i = ifile.get(); // I am getting hex form hexFile and want to
char c = ifile.get(); // convert it to a decimal representation for int and char
谢谢你。