rakesh-the gilli
Journeyman
Hai geeky guys! Can anyone tell me how to use the Ryan post XP-(Service Pack 2) package given in august digit to integrate all the hotfixes that released after Service Pack-2.
Vishal Gupta said:^^
What kind of request is this???
@rakesh-the gilli
u r welcome.
#include <stdio.h>
#include <conio.h> /* needed for kbhit and getch */
#include <ctype.h> /* needed for isprint */
int main()
{
int ch;
ch = -1;
while (ch != 0x1B) /* watch for an ESC */
{
if (kbhit()) /* check for a keystroke */
{
ch = getch(); /* get the key */
printf("%02X", ch);
if (isprint(ch)) printf("/%c", ch);
if (ch == 0) /* if it's 0... */
{
ch = getch(); /* get the next key */
printf(" %02X", ch);
if (isprint(ch)) printf("/%c", ch);
}
printf("\n");
}
}
return 0;
}