Forum: C++ Jul 9th, 2008 |
| Replies: 1 Views: 550 Hello all,
I was wondering if you all could help me out with a Binomial Queue problem I am having. The problem is that my merge function is not working at all and I would like some input into... |
Forum: C++ Jun 17th, 2008 |
| Replies: 4 Views: 1,950 Sorry I was not very clear, I actually did not understand the question fully myself.
Basically, the children of a node just become reversed:
so if node t has a kid named a and e, and a's right... |
Forum: C++ Jun 17th, 2008 |
| Replies: 4 Views: 1,950 So I have figured out everything with this program, except one thing which is escaping me. I have created a General Tree(or sometimes called left most tree) where the node points to its left most... |
Forum: C++ Jun 16th, 2008 |
| Replies: 3 Views: 807 Thanks for your reply.
I changed my code as follows:
T* pop();
template<typename T>
T* Stack<T>::pop(){
T *value = &elems.back(); |
Forum: C++ Jun 16th, 2008 |
| Replies: 3 Views: 807 When I test my stack with an int when I do pop all it seems to return is the address of the thing that I want and not the value, which makes sense since I return something by reference.. but I just... |
Forum: Java Apr 26th, 2008 |
| Replies: 1 Views: 766 Hello all,
Hello,
I am having a problem with a java applet i created, a hangman game, but I am having a problem I hope you all could help me out with.
I am able to run my applet in netbeans... |
Forum: Java Apr 6th, 2008 |
| Replies: 2 Views: 1,168 Hello all,
I am having some trouble I hope you can help me out with. I am trying to input a list of text, which has the name of a sub, the hull number, and the homeport of the sub, like this:
... |
Forum: C++ Mar 23rd, 2008 |
| Replies: 3 Views: 1,366 I have tried this, but it still does not work. Basically i want it to act just like the normal array operator, so someone could do myList[3]=4 and then it replaces array index 3 with 4. But what I... |
Forum: C++ Mar 23rd, 2008 |
| Replies: 3 Views: 1,366 Sorry, thought posistion would be obvious. It is the same as myList[45] the 45 would be passed to the overloaded operator. It reads it correctly if the array index is out of bounds for the... |
Forum: C++ Mar 23rd, 2008 |
| Replies: 3 Views: 1,366 Hello all,
I am having a bit of trouble overloading the [] operator on a template based LinkedList class. Could you all tell me what I am doing wrong? Thank you so much. Basically it is to... |
Forum: C++ Mar 13th, 2008 |
| Replies: 2 Views: 468 Hello all, I am having some trouble creating and using a template based linked list and I hope you all can help me out. I have created a LinkedList class, and I am trying to use it in my main, but I... |
Forum: C++ Mar 7th, 2008 |
| Replies: 1 Views: 3,659 Hello all,
I am having a bit of a problem with a part of my assignment I hope you can help me out with. I created an abstract baseclass called Geometry and 3 derived classes called Box, Sphere,... |
Forum: C++ Jan 30th, 2008 |
| Replies: 1 Views: 1,321 Hello everyone,
My name is David and I am new to these forums as far as posting goes, but I have used alot of the advice given here in my programs. I have come across a problem though in my... |