M
mott747
I'm working to learn C. I've into a problem that I'm not sure how to
solve. I'm implementing a basic binary tree but I don't want it to be
restricted to a particular data type. I seemed to be able to get
around this by making the data type stored a pointer to void. But then
this introduces the problem that I can't compare the values being
pointed to. Can anyone give me any tips?
solve. I'm implementing a basic binary tree but I don't want it to be
restricted to a particular data type. I seemed to be able to get
around this by making the data type stored a pointer to void. But then
this introduces the problem that I can't compare the values being
pointed to. Can anyone give me any tips?