This looks like a classic homework problem! I don't think most of us mind helping out with homework as long as you have shown that you have really, REALLY tried.

In this case, it looks like you have tried to write a program. Great! I'm not going to compile it for you though -- you also need to learn debugging techniques! Anser these questions: What line is causing your error? What does the compiler report?

If you still can't figure things out, then list the answers to those two questions back here and I am sure people will help direct you in your quest to debug the program!

- Kevin

P.S. I'd recommend seperating your application into more functions where each one can be short and have a more well defined purpose. Not only does this make the code easier to follow, but it also helps isolate bugs. And who knows, you may even be able to use one of them again in future assignements. Ex:


void DemonstrateCharArrayInput()
{
 ...
}

void DemonstrateIntArrayInput()
{
 ...
}

...

void DemonstrateArraySearch()
{
 ...
}

void DemonstrateArraySort()
{
 ...
}

void ArrayInputMenu()
{
 ...
}

void MainMenu()
{
 ...
   case 1:
       ArrayInputMenu();
       break;
 ...
}

void main()
{
 MainMenu();
}