www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/23/13:09:59

Message-ID: <38B3FF66.A4EF6CC6@corel.com>
Date: Wed, 23 Feb 2000 10:40:22 -0500
From: Jonathan Meunier <jonathanm AT corel DOT com>
X-Mailer: Mozilla 4.7 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: how to read keys
References: <sb7v86rer2a162 AT corp DOT supernews DOT com>
NNTP-Posting-Host: 120.150.4.236
X-Trace: 23 Feb 2000 10:38:56 -0500, 120.150.4.236
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

mukt1000 wrote:
> 
> Hi,
>  1.As a newbie I couldnt find a good replacement for pascal's "readkey"
> function in djgpp c++ v2.03
>   (reads a key from the keyboard and returns the key-number);
>  the "bioskey" and "kbhit" is slow.
> 
> 2.I use c++ but I still use "libc.a" functions,is it worth to use  libg++
> and are there any good referances
>   for it.(libc.a has a very good referance with all functions included)

Try getch()..

eg:

int main() {
   char key;

   key = getch();
   printf("You typed %c!",key);

   return 0;
}

HTH,
	.(Trancelucid).
	  .  Jaune  .

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019