Here is a code of a structure. On that there is a BSTree function included on the structure. I am stuck because I do not understand how a function can get called when is inside the structure. Here is the structure and if anyone can explain the trick would be helpful:
struct BSTree{
int data;
BSTree *left;
BSTree *right;
BSTree(int value){
data = value;
left = 0;
right = 0;
}
};