thank you for your valuable suggestions
thanks for your valuable suggestions .....banfa...
User Profile
Collapse
-
for your convenience ,to understand wat actually is done...i m putting the whole program :
and the error is general protection exception and line :if(ptr->lc==NULL && ptr->rc==NULL) i.e. line no 68..Code:<snipped>
is highlighted...i want to know what is wrong.......Leave a comment:
-
error in a function.needs help
i m trying to make a function which will calculate size of each node of an ordered statistic tree . here size refers to the number of nodes in left sub tree and right sub tree plus one...
but whenever i call this function compiler gives error....and program terminates at line:
if(ptr->lc==NULL && ptr->rc==NULL)
[code=c]
size(struct node *ptr)
{
if(root==NULL)
{
... -
u can do this by declaring datamembers in class only and then used these data members in the member funtion to get the desired result.
there few other errors in code,see by your ownself.Leave a comment:
-
thanks to all for their precious suggestions.
i have solved the problem by my ownselfLeave a comment:
-
-
i m trying to implememt a stack with the template.
i m trying to implememt a stack with the template.but i m using a user defined data type called (struct) node in class stack.i have declared a pointer of struct node type which is then used in main function.i m facing a problem in accessing this pointer there.pllllllll zzzzzzzzz help me out but giving your valuable suggestions.i have the code below.thnx.
here is the code
[code=cpp]#include<iostre am.h>...
No activity results to display
Show More
Leave a comment: