A way of "cheating" is to read the individual characters. Store the data in a char array, delete some number to get the desired integer (I think it was 48?), and then just use assignment.
Use modulo operator to break apart the digits and then write each digit to the array. It sounds like you just need a fixed array of 4 and the user enters a 4 digit number but how dynamic is it? What if the user enteres 1203523335521? Do you need to make a bigger array by determining the number of digits?
You could ask how many digits will be inputted ahead of time and calculate 10^(that number of digits) - 1 and check if what's inputted is larger than that iff you wish to use kempofighter's method.
Or, you could input the data in to a string and convert it into a char array and use mine.
Hopefully you are able to use std::deque so that you can grow the array as needed. It shouldn't be too difficult to figure out how to use that tool once you figure out how to separate each digit from the number.