simple C++ program help required !

i am trying to write a code for a program ,which is able to give the ASCII code for special keys on keyboard...provided that the key would be entered by the user at the time of execution of program and there is a limitation that we can only use some simple function or loop for doing this..and using the getch();

please any help regarding this problem ?

In a loop, read character by getch(), and print that character by typecasting to int.

And, to exit from loop, you need to check for some special character for which you want to exit. e.g. 'x'



Gorav
http://www.kgsepg.com
Topic archived. No new replies allowed.