My code first opens the file and gets each line from it, each line taking the form:
HEX_NUM CHAR HEX_NUM
The code I have is
stringstream s( line );
s >> std::hex >> addr >> letter >> std::hex >> target ;
However, I would like to only get the CHAR section (without having the create the variables addr
and target
). How can I rewrite the 2nd line of my code to do so?
Aucun commentaire:
Enregistrer un commentaire