getch()

This is a discussion on getch() within the C++ Programming forums, part of the General Programming Boards category; where can i find a list of the numbers for each key that is used with the getch() command....

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    77

    Wink getch()

    where can i find a list of the numbers for each key that is used with the getch() command.

  2. #2
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Something like this, or something different?
    The world is waiting. I must leave you now.

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,636
    char c = 0;

    while(c != 'q') {

    printf("%c is %i \n", c, c);

    c = getch();
    }

    It was right under your nose
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. Pls repair my basketball program
    By death_messiah12 in forum C++ Programming
    Replies: 10
    Last Post: 12-11-2006, 04:15 AM
  3. Pause a C program without getch()
    By swgh in forum C Programming
    Replies: 4
    Last Post: 02-20-2006, 10:24 AM
  4. Clearing input buffer after using getch()
    By milkydoo in forum C++ Programming
    Replies: 3
    Last Post: 07-21-2003, 11:04 PM
  5. Problems with getch()
    By GrNxxDaY in forum C++ Programming
    Replies: 14
    Last Post: 08-12-2002, 02:11 AM

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