your welcome
if your mixing numbers and characters, make sure to always use single quotes around whatever the value is, whether number or character. see my short example:
Code:
#include<stdio.h>
int main()
{
char menu;
menu = 1; // menu now holds the ASCII value of the integer 1, a smiley face when printed
menu = '1'; // menu now holds the number one '1'
menu = 97; // menu now holds the ASCII value of number 97, the charcter 'a'
menu = 'a'; // same as previous statement
menu = '5';
if (menu == 5) // this will be false, because the _value_ of menu is number '5', not ASCII value 5
printf("menu is '5'\n");
return 0;
}
hope it helps