Thread: Key response

  1. #1
    Unregistered
    Guest

    Key response

    How do I order the computer to respond to a keybutton bieng pressed? Eg: If you press spacebar the word "Hello" is displayed?

    Paul

  2. #2
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    well you should use the getche function in c++ and display a message afte that.. This would do the job. If u want to know how pm me.

  3. #3
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    or getch() from the same library. getche() echoes the character to the screen. getch() doesn't.... that is about the extent of it.

    See the faq on pausing a program...
    Blue

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM