title: How to get one individual digit from a number that has more than one digit in it
body: <p>So I have a four digit number that is player-input in a simple puzzle I am making, I want to be able to check each digit, say I want to check the second digit to the right, if the number happens to be 4601 then of course it will be 6 but is their a faster way other than testing every single four digit number?
  I found a few results with search but they didn't help, they just confused me more, please phrase any answers so anyone can understand them. 
  Also i am using c++. </p>