Whats the best way to go about indexing a number? For example, if i wanted to check to see if an integer had certain characters in it how would I do that?
C++ way seems to be stick into a stringstream, then convert that to a string. From there, you can index all day. This is probably the simpler way. The C way, woul be to create a char array, and do some modulus math and stick each integer into the array.
I think OP is confused. An integer is an atomic entity. It's not built out of smaller parts that you can disassemble. The number 24 is the number 24, not the numbers 2 and 4 put a specific order.