can someone kindly tell me how i can put keys such as escape, control, alt,etc. in c programs? for e.g. press esc to exit prog.
Printable View
can someone kindly tell me how i can put keys such as escape, control, alt,etc. in c programs? for e.g. press esc to exit prog.
>can someone kindly tell me how i can put keys such as escape, control, alt,etc. in c programs?
If you can kindly tell us your operating system and compiler. :)
i use windows xp and turbo c++ compiler
i hope that will be of use
>i use windows xp and turbo c++ compiler
That's a match from hell. Couldn't you find a newer compiler for your state of the art operating system? There are free ones sprinkled all over the web, you know.
Anyway, the easiest way to do what you want is to read this. It talks about the arrow keys, but the same principles apply for other special keys.
I wouldn't go that far, but it is quite outdated. Ironicly, some friends and I have been talking about that compiler arguing about the colors the IDE used (don't worry, we realize it's a dumb argument).Quote:
Originally Posted by Robc
Here's a site I found that mentions some of the problems with turbo C++ version 5.0 and XP and some fixes as well, so it may help you out if you have problems:
http://personal.sirma.bg/Jogy/bc5.html
could you tell me which compiler is best suited for windows xp which i can get free on the net and also for windows 98
Oh, you mean like this link, right on the front page of this web site? While you're at it, read the FAQ for reading keystrokes, and search the forum for the extended keys, F keys, etc.Quote:
Originally Posted by alvarorahul
Quzah.
thanks quzah for the info.
however there are quite a few listed at that linkQuote:
Oh, you mean like this link, right on the front page of this web site?
g++,borland, dev c++, etc.
which one do you suggest for my OS i.e winXP?
>which one do you suggest for my OS i.e winXP?
They'll all work. Pick one and see if you like it. The last time I checked, Windows XP lets you remove programs (even Home Edition!). ;)