A switch case inside another switch case is strictly a no no. It goes to show that your program is not modular enough. You'll have a hard time maintaining it. Others will have a hard time understanding the logic.
:) yeah i omitted the "&&"
while (cin >> letter)
anyway :) an if statement would suit better so ignore this