getche();

This is a discussion on getche(); within the C++ Programming forums, part of the General Programming Boards category; i know ive been here alot today, and i think this is the same question as a few posts ago ...

  1. #1
    Mmm. Purple.
    Join Date
    May 2002
    Posts
    154

    getche();

    i know ive been here alot today, and i think this is the same question as a few posts ago but
    Code:
    int a=0;
    a=getche();
    cout<<"after this will be the key i pressed";
    [edit]
    The thing is....I DONT WANT NUMBER AFTER "pressed"
    Im using Dev-C++ dos programming
    Last edited by krappykoder; 03-01-2003 at 08:25 AM.

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    What's the question?

    [edit]

    What? I don't want number after pressed? What'd you mean?
    Last edited by Travis Dane; 03-01-2003 at 08:52 AM.
    --

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: getche();

    >>a=getche();
    >>I DONT WANT NUMBER AFTER "pressed"
    getche() echos the key to the screen. To suppress it, use getch() (if you have it)
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

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