I'm fairly new to C++ and have an idea of what is happening in this chunk of code but would really like to get validation or correction, please.
Code:
for (int digit=4 ; digit >- ; digit --){
switch (digit){
case 1:
break;
}
aNumber(bNumber % 10);
bNumber /=10;
}
I've truncated the code down but I believe this is the essential part of it. My question is around what the aNumber(bNumber %10) and bNumber /=10 are actually doing. I'm assuming that aNumber is returning the left most integer in bNumber. Then bNumber /=10 is removing the left most integer from bNumber. Can you confirm or correct my assumption?
Thank you