Your problem is tha tyou cant switch on an array itself. You mention that the value of ven[4] is a single char and that is what you want to switch on. You have a couple options, take a look at them...