ok. I see why the while loop doesn't work. if I use the same code with a do ... while I end up with the same results it runs just one time. Why might that be? example:
Code:scanf ("%c", &letter); select = letter; select = tolower(select); do { 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"); else }while ( select == 'z') printf ("\tYou are finished.\n");



LinkBack URL
About LinkBacks


