No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
I'm trying to run a thread until a mouse event occurs, which will trigger an interrupt to the thread. The problem is that I can't get the thread to stop running in an asynchronous way (i.e. to listen is a mouse event occurred). Instead, what happens is that the thread … | |
I'm trying to find the shortest path between two locations in a 2D array with only horizontal and vertical moves allowed (Manhattan distance). I've tried to convert the pseudocode from Wikipedia's article on the A star algorithm ([url]http://en.wikipedia.org/wiki/A_star[/url]) into Java, but it doesn't work. Note: the game works properly using … | |
Re: I see jencas addressed the first problem. I think that, from what you originally posted, you need to check gender when comparing weights as well. Concerning the second problem, the last two "if" statements should be changed to "else if" so one one of the three cases can execute. | |
Re: In MainPanel, at the very end, try doing "validate();" right before repainting, so the game object can note any changes that were made. | |
Re: When repaint() doesn't work, I try to do validate() just before. This way the changes that took place are updated. | |
I want to able to search for multiple words on the same line. For example, consider the file with the following contents: .... 11. 15 18 40 53 => 16 19 41 54 12. 03 15 27 64 => 04 15 28 65 13. 25 46 47 91 => 26 … | |
I'm writing a C++ project using OpenGL in Microsoft Visual Studio 2005. I already have code for importing a jpeg image, but I don't know how to place it on a plane in 3D so I can view it in either ortographic or perspective projection. Also, how do I set … | |
I want to use some links that jump to a specific time in a video in Real Player. Does anybody have any suggestions on how I might do this? Also, can I resize the video playing screen and have Real Player remember the location the video was playing before it … | |
I started working with MIPS a couple of months ago and now I need to edit a given string so that it will only display the digits, arithmetic symbols and parenthesis that were in the original string as output. I though I could go ahead an print every string that … |
The End.