Ok I am not the greatest in the world at pointers.
but I can build a linked list with no problems.
New problem is this I was parsing out some xml data
and I was trying my hand at recursion.
so to make it simple I took out all the parsing and just
did a little something to try and see if it works.
I did this
tree* tree::add_node(tree *root)
found = lineinput.find("</");
tree *node = *root;
root->data = lineinput;
if (found >0)
if (found <=0)
try as I might this worked but didn't.
Then I was told oh this wont work unless you use a pointer to a
pointer...something like **root.
Well I am lost and dont' know what to do this makes no since(to me)
and not sure what they are saying or how to do it.
can someone tell me what a pointer to a pointer does and if there is
something I can find to explain the syntax behind it?
thanks big time for help