Is there a c function that automatically detects a keypress.. that at once i can print it using outextxy() function once the key is pressed?
Printable View
Is there a c function that automatically detects a keypress.. that at once i can print it using outextxy() function once the key is pressed?
what is outextxy() ?
The function getch() from conio.h will work but you compiler may not have it because it is not standard and not recommended. AFAIK there is no standard way to receive a kepress without hitting enter.
(I think I may have misunderstood the question)
What compiler are you using?
I mean once my program detects a keypress i want to automatically print it using outtextxy and not press enter before i can print it..Quote:
Originally Posted by sand_man
Try the links that Hammer posted.
And tell us what compiler you're using.