I am trying to write a method in C++ which determines if an integer has letters in its hex representation using stream manipulators without using any for loop.
One way could be to use getline and do some math. Can someone provide hints on the kind of computation required?
I appreciate your helps or using the Circular Arithmetic , But I am looking for something which does not iterate over the string
You can do someting like (only logic operation and one substraction)
Trick is that binary representaion of string is allready hex (almost) you just need to chek each nibble