The program initialises the array with letters of the alphabet (which are of course printable), then uses a loop to replace each of these with a value in the range 0, 1, 2 (which are non-printable character codes) and attempts to display them.
The standard ASCII table defines 128 character codes (from 0 to 127), of which, the first 32 are control codes (non-printable), and the remaining 96 character codes are representable characters
I've a rough idea of what you might be trying to do, but perhaps you could describe it in words, so that someone may be able to suggest a solution.
Is this by any chance what you are trying to achieve?
I advise using std::array over C-Style arrays. This example will require an C++11 enabled compiler. If you haven't done that so far, it is a good thing to learn.
If there are things in this code you don't understand, feel free to ask.
Edit: Logically speaking, my code may be incorrect, in terms of the technicalities of a slotmachine...