View Single Post
  #1 (permalink)  
Old 04-23-07, 15:53
flobeats flobeats is offline
Registered User
 
Join Date: Apr 2007
Posts: 31
Exclamation Help I want to make a simple menu in C

Hi, i need help. I want to make a simple menu in C.
I have made a program I have 2 functions readTemp() and writeTemp()
void main()
{
}

printf("1.Read Temperature");
printf("2. Write Temperature");

void readTemp()
{
getch();
}

void writeTemp()
{
getch();
}

I know is samethink with
switch()
case '1': readTemp(); break;
case '2': writeTemp(); break;

pls somedody help!
Reply With Quote