Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
33% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
~2K People Reached
Favorite Forums

8 Posted Topics

Member Avatar for deepecstasy

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 …

0
84
Member Avatar for deepecstasy

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 …

Member Avatar for nitin1
-1
181
Member Avatar for GeneClaude

**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

Member Avatar for Ancient Dragon
0
465
Member Avatar for deepecstasy

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: …

Member Avatar for mrnutty
0
268
Member Avatar for andigirlsc

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 …

Member Avatar for deepecstasy
0
258
Member Avatar for on93

**Define & declare the constructor within class.** public : student() { name = "xxx"; id = 0; cgpa = 1; } void setName(string na); ..... ....

Member Avatar for deepecstasy
0
133
Member Avatar for sobias

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 …

Member Avatar for sobias
1
231
Member Avatar for deepecstasy

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)* & …

Member Avatar for deepecstasy
0
405

The End.