Forum: Java Apr 11th, 2007 |
| Replies: 5 Views: 1,003 Yep- here it is.
The
((MapEdge)edge.elementAt(index)).get------
lines are just getting the X and Y coordinates of the two endpoints of the lines
public boolean pathSelected(int... |
Forum: Java Apr 11th, 2007 |
| Replies: 5 Views: 1,003 I figured this out. and yes, it involves comparing a lot of numbers and taking square roots, etc. it works perfectly though. |
Forum: Java Apr 11th, 2007 |
| Replies: 5 Views: 1,003 yes, the line will not always (in fact, usually not) be exactly horizontal or vertical.
The program i am working on is similar to mapquest. I have a Map Editor which loads an image of a (somewhat... |
Forum: Java Apr 11th, 2007 |
| Replies: 5 Views: 1,003 I need help coming up with an algorithm to determine if the user clicks on any point of a line. A line is given by two points.
So you have x1, y1 positions of the first point, and x2,y2 positions... |
Forum: C++ Mar 1st, 2007 |
| Replies: 8 Views: 7,551 thekashyap, thanks for your reply. My biggest problem with the iterator was knowing where to start and end (I think... I'm also not exactly sure how to find the ones in the middle of their are empty... |
Forum: C++ Feb 28th, 2007 |
| Replies: 8 Views: 7,551 I was given skeleton code for this project, and
<LI class=li1> // Array of the hash buckets.
HashTableEntry<Data> **_buckets;
was given to me already. I don't believe I was allowed to change... |
Forum: C++ Feb 28th, 2007 |
| Replies: 8 Views: 7,551 Thanks. Any idea how to code the Iterator? I have not a clue :\ |
Forum: C++ Feb 27th, 2007 |
| Replies: 8 Views: 7,551 Hey. I kindof posted tihs before but it didnt have a good title. But, I had to implement the functions of a Hash Table template... I wasn't sure exactly how to do it, but I figured out a way to get... |
Forum: C Feb 26th, 2007 |
| Replies: 2 Views: 939 Thanks. Those links helped me alot. I got the class implemented (except for the iterator part... I was still unable to figure that out.), and was able to pass 7 of the 9 test cases (the other two... |
Forum: C Feb 14th, 2007 |
| Replies: 2 Views: 939 Hey, for part of my project, I have to implement a Hash Table template. I had to implement several other classes too, and I finished them. But I really don't know much at all about hash tables and... |