Learnem Educational
May 18, 2012, 12:52:59 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Learnem Educational
>
Free Ebooks Discussion
>
Programming in C in 7 Days (Free Ebook)
>
Reading inputs
Pages: [
1
]
« previous
next »
Print
Author
Topic: Reading inputs (Read 1243 times)
Anonymous
Guest
Reading inputs
«
on:
August 09, 2002, 04:41:03 PM »
Hi,
I have a C question, hope you guys can help me. I would like to read a single character from input. Now one can do this using scanf or getchar. However, I would like to read it as soon as the user press the key. In other words, the user doesn't have to hit the <Enter> key in order for the character to be processes.
Does anyone know how to do this? I remember doing it before, but it's been a while...
Thanks in advanced
«
Last Edit: January 01, 1970, 12:00:00 AM by Anonymous
»
Logged
Anonymous
Guest
(No subject)
«
Reply #1 on:
August 28, 2002, 12:49:39 PM »
Now, If I can remember rightly.. which sometimes happens...
you can include conio.h, and use getch()
Hope this helps.
«
Last Edit: January 01, 1970, 12:00:00 AM by Anonymous
»
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Free Ebooks Discussion
-----------------------------
=> Web Design in 7 days (Free ebook)
=> Programming in C in 7 Days (Free Ebook)
=> ASP Web Programming in 7 days
Loading...