For what it's worth, I stopped using Dev C++ due to my cpu going to 95% all the time when I'm debugging. I noticed this on a Vista pc and an XP laptop. I started using Code::Blocks. I find it has...
Type: Posts; User: Silvio
For what it's worth, I stopped using Dev C++ due to my cpu going to 95% all the time when I'm debugging. I noticed this on a Vista pc and an XP laptop. I started using Code::Blocks. I find it has...
The tree is implemented on heap, using win32 heap functions. The heap is declared of a certain size and as each node is created a part of the heap is reserved for it.
So, I think by using a linked...
I found this interesting site on function pointers
The Function Pointer Tutorials - Introduction
It uses quicksort example of how to use function pointers to implement callback functions.
I...
Excuse my ignorance, but what do you mean by Callback and delegate?
Ok, looked them up, (took me a while to realise what you meant, sorry). Callback seems to be related to "special warnings". What...
Hi,
I have written the code for the basic functions of a binary search tree. All code works ok and I can use printf to view any results. The problem is I need to port the functions in a DLL and...
I have edited the printRoot function and now it gives the required output.
void PrintRoot (NODE* pNode)
{
pNode = gRoot;
if (pNode == NULL)
{
printf ("\nThe tree is...
Thanks but I had tried that already and I still got that error.
I changed a little the freetree function and instead of using free(tree) I used Heapfree. Now the code runs ok but when I try to...
Thanks Quzah for your reply.
I tried the code and still came up with a Windows error. Compiling all the code is ok but when it is Run I get a **.exe has stopped working error with the usual Vista...
Hi to all.
I'm new to this board (and to C code) but have gone through some of the tutorials of the site and searched the board for relevant tips to my problem.
I'm trying to write an...