Thanks alot everyone. I found out what was causing the problem. Thanks for telling me about the toupper(). I'm learnin a little bit more everyday.
The code I threw up there was just the chunk I had a problem with. It was just a exercise I thought up to use pointers. I found what was causing the problems one was the switchchar[1], should of been switchchar[2](thank you!). The other was my original code I used cin.getline to get first and second, instead of cin>>. For some reason out of the function first was second and second had nothing in it. Thank you again everyone you guys have been a great help.