operator overloading

Hey everyone, I have a general question about operator overloading. I am taking a data structures class this semester, and I am suppose to make a morse code program using a binary search tree. In the instructions the teacher says "Here . and - are used instead of left/right" (his example involved using left/right as pointers to the other nodes). What I am assuming is that he wants us to overload the "." and the "-" operators. I tried doing that, but I wasn't successful. Then I looked on the internet and could not find any example. First are you even allowed to overload the "." operator? If you are able to, what would be the basic syntax for doing so?
You can't overload the '.' operator.

I think your teacher just means that the left and right branches of your tree structure should represent either a dot or a dash. So you need to decide, for instance, if a dot is the left hand branch of the tree then a dash must be a right hand branch.
Ha I guess that does make more sense. Thanks for the response.
Topic archived. No new replies allowed.