Thread: ?? getch( ) include ??

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    13

    Question ?? getch( ) include ??

    In the faq i saw an example of how to wait for a user input and it didnt give the include for the getch() functoin. does anyone know what library i should put for the #include?

    thanks again for everyone's help.

  2. #2
    Registered User C_Coder's Avatar
    Join Date
    Oct 2001
    Posts
    522
    its in <conio.h>
    its not ANSI standard though so depending on your compiler it may or may not work.
    All spelling mistakes, syntatical errors and stupid comments are intentional.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Any input function will do for pausing the program, just don't assign what's read to a variable. I prefer to use getchar() since it's standard and has the same effect as the nonstandard getch().
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to use this part of dirent.h
    By kermit in forum Linux Programming
    Replies: 2
    Last Post: 01-31-2009, 08:51 AM
  2. Replies: 48
    Last Post: 09-26-2008, 03:45 AM
  3. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 07:53 AM
  4. Header file include order
    By cunnus88 in forum C++ Programming
    Replies: 6
    Last Post: 05-17-2006, 03:22 PM
  5. limits.h problem!!
    By guitarist809 in forum C++ Programming
    Replies: 21
    Last Post: 04-13-2006, 10:28 PM