how to incorporate atrl,alt esc, etc in c code

This is a discussion on how to incorporate atrl,alt esc, etc in c code within the C Programming forums, part of the General Programming Boards category; can someone kindly tell me how i can put keys such as escape, control, alt,etc. in c programs? for e.g. ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    15

    Exclamation how to incorporate atrl,alt esc, etc in c code

    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.

  2. #2
    Compulsive Liar Robc's Avatar
    Join Date
    Jul 2004
    Posts
    149
    >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.

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    15
    i use windows xp and turbo c++ compiler

    i hope that will be of use

  4. #4
    Compulsive Liar Robc's Avatar
    Join Date
    Jul 2004
    Posts
    149
    >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.

  5. #5
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    Quote Originally Posted by Robc
    >i use windows xp and turbo c++ compiler
    That's a match from hell.
    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).

    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

  6. #6
    Registered User
    Join Date
    Jul 2004
    Posts
    15
    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

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by alvarorahul
    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.

    Quzah.
    Hope is the first step on the road to disappointment.

  8. #8
    Registered User
    Join Date
    Jul 2004
    Posts
    15
    thanks quzah for the info.

    Oh, you mean like this link, right on the front page of this web site?
    however there are quite a few listed at that link
    g++,borland, dev c++, etc.

    which one do you suggest for my OS i.e winXP?

  9. #9
    Compulsive Liar Robc's Avatar
    Join Date
    Jul 2004
    Posts
    149
    >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!).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Proposal: Code colouring
    By Perspective in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 07:23 AM
  2. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 11:38 AM
  4. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 03:28 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21