My program complies through, however I keep getting errors after I type the ID in for CreateNode and after typing L, I get nothing for ListNodes and if i type something and press enter it keeps outputing 0's.
Would print work for listing the IDs other than ListNodes?
And what can I do to be able to create the ID in CreateNode?
The if(l !=NULL) makes it crash after the typing of a number then a press of enter. I am glad you got my attention of the FindParentNode. Earlier I was trying to use a tree for stacks and queues. Sadly I did not put them in and tried to use it as a find function. Silly me. I simply want to find the ID to check if it's already created and to find one to update one into a new ID.
InsertNode has FindParentNode in so that is perhaps the problem like you said. The error is lurking around that function whenever I try inserting so the FindParentNode inside it must be the cause.
I'm going to make it Find and see what I get.
Play with it more then come back here if it's still not working.
Thanks and sorry for making it complexed ^^;
Edit: Alright, I took the FindParentNode out the function and placed the "if(l != NULL)" in and.... it WORKS! Thank you so much!
I just need to get it to display the IDs and it will be finished. ^_^