Question about Computers & Internet

1 Answer

Moving object in turbo c

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.

Posted by on

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Vice President:

    An expert whose answer got voted for 100 times.

  • Master
  • 652 Answers

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())


Thanks
Iqbal

Posted on Mar 15, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
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.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

On my new asus laptop I cant use the touchpad to do anything. It seems to have locked. The cursor is on screen but doesnt move.


Sometimes there's a mouse pic on one of your function keys to local/unlock pad. Hold the function key while tapping the f key once to unlock

Sep 11, 2016 | ASUS Computers & Internet

1 Answer

My left click button is not functioning and I can't figure out how to highlight text without it...


You have to use Tab and Arrow key to highlight object,But for text

Shift + Left Arrow will take you to the right alphabet.
Shift + Right Arrow will take you to the left alphabet.

Shift + Ctrl + Left Arrow will take you to the right word.
Shift + Right Arrow will take you to the left word.

Hope will be little helpful to you.

But I suggest you to get an external USB mouse.

Jan 02, 2010 | ASUS Eee PC 900 Notebook

3 Answers

SAME PROBLEM THE ADVICE DIDN"T WORK


Manual say to -

1. Press the “Menu” key on the panel, “Menu” will appear on the screen.
2. Press [arrow left] or [arrow right] key, move the cursor to “image function”.
3. Press [↑↓] key; enter “Display model” function choice.
4. Press [↑] or [↓] key, move the cursor to “Image Revolve”.
5. Press [arrow left] or [arrow right] key to adjust “Image Revolve”.
6. Press [↑] to go back to the Menu.
7. Press “menu” key to exit the “menu” window

If your projector will not do this, the functionality may not be there.

Dec 18, 2009 | Televison & Video

1 Answer

Integral of sinx how to calculte in casio fx991 es


Hello,
Configure the calculator to be in MathIO : [SHIFT][MODE][1:MathIO].
Press the Integral key, the one judt beloe the [ALPHA] key.
The template of the integral appears, with the cursor in larger rectangle. Enter the function the screen displays the integral, a small upper sqaure, and a small lower square. The left parenthesis of the function is already supplied by the calculator.
Press [ALPHA] X to enter the argument of the function.
Press the right parenthesis.
Remain the limits.
Use left arrow to move the cursor just before the s of sin and press down arrow to enter a numerical value for the lower limit.
Press the up arrow to move cursor in upper square.
Key in the numerical value of the upper limit.
Press [=].

Warning. To have meaningful result, make sure the angle unit used is conform to the problem you are trying to solve.

Hope it helps.

Nov 01, 2009 | Casio FX-300MS Calculator

1 Answer

How do you find the zeros of a function on a TInspire


Hello,

Turn calculator. Use arrow to highlight the 2:Graph and Geometry application. Enter your function at the bottom of the screen. Use TAB to move focus on command line.
Press [ENTER] to graph.
While graph is drawn, press [menu] key. Select [5:Trace][1:Graph Trace] . An X appears on the graph screen. Use arrow to move cursor towards one of the zeros you see. At some point the calculator will pop up the label [zero]
d41c39d.jpg

Press [ENTER]
7c04304.jpg

Use arrows to move the cursor near a second zero. When [zero] pop up text appears, press [ENTER]

ac2ae2e.jpg

The value of the secon zero is also displayed.

You can also the nSolve command

Use the nSolve( function available in main calculator application. Here some exemples of syntax
0c734aa.jpg
On the second command line, the small vertical segment after the right parenthesis is accessed by the key sequence [CTRL] [infinity, beta, degree] key, the one under [left arrow/clear].

646b3b6.jpg

Hope it helps.

Oct 26, 2009 | Texas Instruments TI-Nspire Graphic...

1 Answer

When in a spreadsheet, the arrow keys do not move cursor


first try to see the cursor is not within the cell blinking cause sometimes when the cursor is within the cell it traps the controls and will not able to function on your desire output. so try to observed it again.

Jun 16, 2009 | Microsoft Excel for PC

4 Answers

Arrow keys do not function in bios


Arrow keys move the cursor into fields + or - keys change the values of the fields.

Sep 23, 2008 | Dell Latitude D600 Notebook

3 Answers

C programming coading


1
2 2
3 3 3
4 4 4 4
5 5 5 5 5

Apr 30, 2008 | Computers & Internet

2 Answers

Font size


If you continue to have problems changing the size, make sure the 'bent arrow' next to the BS key is not on. Once I took that off I was able to make the need adjustments to my size and style.

Feb 13, 2008 | Brother P-Touch 1180 Label Printer

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

414 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18384 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...