ok. I do apologize. here is all the code.
Code:
/*Create the menu of the main function. This is where the user selects the
function they want to us to fill, sort, search or print an array.
Continuation of arrays.cpp which works
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
//Function Declarations
void functionUse (char choice);
int main (void)
{
//Local Declaration
char letter;
char select;
//Statements
printf ("\t\tMenu\t\t\n");
printf ("=================================================\n\n");
printf ("Select one of the following options:\n");
printf ("\t F. Fill array with a random number series\n");
printf ("\t P. Print the array\n");
printf ("\t S. Sort the array\n");
printf ("\t Q. Query the array\n");
printf ("\t Z. Terminate the program\n");
do
{
printf ("\tYour choice is: %2c");
scanf ("%c", &letter);
select = letter;
select = tolower(select);
if (select == 'f')
printf ("\t Fill\n");
else if (select == 'p')
printf ("\t Print\n");
else if (select == 's')
printf ("\t Sort\n");
else if (select == 'q')
printf ("\t Query\n");
}while ( select == 'z');
printf ("\tYou are finished.\n");
system("PAUSE");
return 0;
} //main
I get two error messages and the is the message I get and it will not print the menu now.
I again appreciate your help.