- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 1
8 Posted Topics
Here is my splay function: template <class WA> void SplayTree<WA>::Do_Splay(SplayNODE<WA> *temp) //temp is the node which is to be splayed { if (temp==root) //if temp is root then { return; } //Do Nothing else if (root->left==temp || root->right==temp) //else if temp is a child of root { if (root->left==temp) //if … | |
As you know how avl should be balanced after deletion of a node, I'll get to point. For starting, Im considering deleteing a node with no children. For Example a Tree: 10 / \ 5 17 / \ / \ 2 9 12 20 \ \ 3 50 Lets say … | |
Re: **Elaborate your query please.** According to your question, this is what program should do. 1. Input time from user. 2. if input<2 display result 0V 3. else if input>2 display result 3V 4. End | |
So Im creating Simple Binary Tree, not BST. Im having problem in deletewith 2 child. Method for deletion is DELETE WITH COPYING. After deleteing, when I traverse the tree, it shows run time error, **Unhandled exception at 0x008B5853 in binarytree.exe: 0xC0000005: Access violation reading location 0xFEEEFEEE.** Here is the function: … | |
Re: My love, you are trying to call the functions which you have not defined, you are trying to call just the prototype of function. So just comment //void disp_final_report(); & //void disp_purchase(); Then in all other functions where you are calling them, comment the call, like in main func at … | |
Re: **Define & declare the constructor within class.** public : student() { name = "xxx"; id = 0; cgpa = 1; } void setName(string na); ..... .... | |
Re: Bro, 1st off, use pointer to operator with pointers instead of dot to call its members, i.e. `->` Now,dynamic memory, which you get from new operator & store its address into some pointer like `*temp = new NODE<args>` . You have to manually deallocate(return memory to OS) it using delete … | |
I have designed a linklist based BookStore in which book's attributes will be stored in a node & so on. Plus at the end of program, I have to save all database into text file *(I tried binary reading but damn I got me killed & couldn't do it)* & … |
The End.