arraysFirst off, as fafner said, you're re-initializing the array in line 21. Also, your cin has the wrong...
if else value returning problemit sounds like you're trying to use a call-by-value function http://tinypaste.com/f61baa
problem with default case in a switchI can't even read your code, you should use a paste site instead or use the code function in the for...
This user does not accept Private Messages