> getch<CONIO.H> ~ Online tutorial

getch


 getch gets a character from console but does not echo to the screen

 Declaration:


   int getch(void);
 
 Remarks:


getch reads a single character directly from the keyboard, without echoing
to the screen.

 Return Value:


Both functions return the character read from the keyboard.

Progarm


#include <conio.h>
#include <stdio.h>

int main(void)
{
  int c;
  int extended = 0;
  c = getch();
  if (!c)
    extended = getch();
  if (extended)
    printf("The character is extended\n");
  else
    printf("The character isn't extended\n");

  return 0;

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: