How can I split an int in c++ to its single numbers? For example, I\'d like to split 23 to 2 and 3.
cast it to a string or char[] and loop on it