Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~6K People Reached
Favorite Tags

9 Posted Topics

Member Avatar for toucan

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 …

Member Avatar for JamesCherrill
0
181
Member Avatar for toucan

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 …

0
81
Member Avatar for DarkSaint

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.

Member Avatar for DarkSaint
0
84
Member Avatar for number87

In MainPanel, at the very end, try doing "validate();" right before repainting, so the game object can note any changes that were made.

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for curtissumpter

When repaint() doesn't work, I try to do validate() just before. This way the changes that took place are updated.

Member Avatar for toucan
0
3K
Member Avatar for toucan

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 …

Member Avatar for toucan
0
137
Member Avatar for toucan

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 …

Member Avatar for skatamatic
0
111
Member Avatar for toucan

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 …

0
55
Member Avatar for toucan

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 …

Member Avatar for Duoas
0
1K

The End.