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?
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?
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
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..Originally Posted by sand_man
Try the links that Hammer posted.
And tell us what compiler you're using.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.