Hi.....getche()

This is a discussion on Hi.....getche() within the C Programming forums, part of the General Programming Boards category; what are the use of getche()? can u please give me some example And what is the use of "#define ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Location
    Philippines
    Posts
    3

    Hi.....getche()

    what are the use of getche()?

    can u please give me some example

    And what is the use of "#define MAXLETTER " and "#define MAXNUMBER"?

    can u....please

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,992
    what are the use of getche()?
    getche() is a non-standard function. You can find more information about it by searching the Web.

    And what is the use of "#define MAXLETTER " and "#define MAXNUMBER"?
    Do you have a specific program in mind, or are you merely asking about macro definitions?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Use getche() if you want to get a character without having to press enter, and you want that letter output to stdout. It's not available on every compiler.

    #define is used to redefine certain strings in your code to be replaced with others.

    The easiest thing would be to look it up in your book on on the web.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem with login thingy....
    By Huskar in forum C Programming
    Replies: 4
    Last Post: 03-31-2009, 06:23 PM
  2. Writing my own getche() function
    By Mavix in forum C Programming
    Replies: 4
    Last Post: 11-08-2006, 04:51 AM
  3. Problem with getche()
    By Caze in forum C++ Programming
    Replies: 2
    Last Post: 05-01-2005, 09:30 AM
  4. charactor count wthout getche function..?
    By gardenair in forum C Programming
    Replies: 3
    Last Post: 05-18-2003, 04:04 AM
  5. getche() with cin.getline() ?
    By marCplusplus in forum C++ Programming
    Replies: 8
    Last Post: 12-21-2001, 01:13 AM

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