Question about Computers & Internet
I have tried it. i used kbhit and getch() function for this. object is moving but on all keys i want it only on arrow keys, and one more thing when i realease the key object gets dessapear. can i get the code for this.
Yaa you can make a check like following:
Lets suppose your up key has a scan code of 28
then you should use
while ((upkey = getch()) == 28)
............do your work to move your object
..............make your object disapear here
Note: m not sure the up key scan code is actually 28
you can chek it after using printf(%d, getch())
Posted on Mar 15, 2008
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Sep 11, 2016 | ASUS Computers & Internet
Mar 26, 2011 | Borland Turbo C++ 3.0 Full Version...
Jan 02, 2010 | ASUS Eee PC 900 Notebook
Dec 18, 2009 | Televison & Video
Nov 01, 2009 | Casio FX-300MS Calculator
Oct 26, 2009 | Texas Instruments TI-Nspire Graphic...
Jun 16, 2009 | Microsoft Excel for PC
414 people viewed this question
Usually answered in minutes!