Thread: Hi.....getche()

  1. #1
    Registered User
    Join Date
    Oct 2008


    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
    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?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    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
    Toronto, ON
    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
Website Security Test