kbhit


conio.h


/*
Write a program in C for kbhit
*/

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

main()
{
   while(!kbhit())
      printf("You haven't pressed a key.\n");

   return 0;
}

Post a Comment

2 Comments