Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

kbhit Function - Computer Graphics CG Program

kbhit in Computer Graphics, below is the declaration of function.

Declaration : int kbhit();

kbhit() retruns int value. Returns 0 when key is pressed, else returns non-zero value.

Code:
#include 
#include

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


This post first appeared on Ask For Program, please read the originial post: here

Share the post

kbhit Function - Computer Graphics CG Program

×

Subscribe to Ask For Program

Get updates delivered right to your inbox!

Thank you for your subscription

×