I have tried it out, I wrote the function and tested it with a simpler function with a linked list not a binary tree and it worked well, How can i change this to be more sure?
Type: Posts; User: elsewhere
I have tried it out, I wrote the function and tested it with a simpler function with a linked list not a binary tree and it worked well, How can i change this to be more sure?
My program, compiles and works fine, however there is an issue with the search function, When I try to search for a specific element in the binary tree, It doesn't work! for example: when i enter...
ok, I will try that out and post the results, I have been thinking and it make sense that the cal
l foundNode = search(key, rootPtr);
only deals with the root and doesn't touch the leaves, What do...
ok tabstop, I think it just looks at the first element and forgets about the leafs, What do you think?
oh, I understand now! the problem is that you don't understand the concept,
here:
First you need to run the program in PURE memory, don't worry about files, If the user decides to save his/her...
Simply change:
dataOutput = fopen("fileOutput.txt","a+");
to:
dataOutput = fopen("fileOutput.txt","w");
notice the "w"
Concerning another function that has to be implemented the delete_entry() function, which has to call the search function to locate the entry(if it exist) and delete( one occurance of it)
any ideas,...
I made a couple of changes in the code, basically replacing the search function prototype,
TreeNodePtr search(char *key, TreeNodePtr leaf)
now its ok, I am getting two syntax errors in the...
I am doing a binary tree , I need to search for a specific element
these are the structures and the function itself( not completed)
struct employee{
char fname[SIZE];
char lname[SIZE];...