What that code does is a function that takes the parameter of int num and spits back a character. The values of the switch-case statements are valued 1 -6 which spit back, to me a randome character, that are in the upper aphla set but I would have to look at the ascii set to verify.