Thread: Please, help

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    1

    Please, help

    I’m just a beginner in programming, so please don’t laugh. But I need to find out how to read a “+” sign from keyboard. I’m writing a C program and compiling it in Linux. Thank you very much.

  2. #2
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    What exactly are you asking for? It isn't exactly clear, please try to be as clear as possible. It seems like you just want to know how to type it in, which would just require you to be holding down the "shift" key while pressing "=". For other more technical questions it would also help a great deal to be more specific about your programming, like the operating system you're under and what compiler/environment you're using.

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Actually, I find his question pretty clear. He want to be able to read characters from the keyboard (without pressing Enter).

    Sorry, but there is no good standard function for this.
    If you had Borland, you could've used getch() in conio.h.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed