Menu « character « C Data Type Q&A

Home
C Data Type Q&A
1.binary
2.bit
3.byte
4.char
5.character
6.decimal
7.Development
8.float
9.hex
10.integer
11.prime
12.random
13.struct
C Data Type Q&A » character » Menu 

1. Menu that accepts single character in C language    stackoverflow.com

I want to create a simple menu in C program that accepts single character. The menu will be like this:

  1. [S]how
  2. [E]xit
If the user enter '1','s' or 'S' the program will print "Hello" ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.