In C++ you'd do something like:
I think. :rolleyes: Ported to VB, you could do this (without pointers, thank god):Code:struct Node
{
int data;
Node *right;
Node *left;
}
VB Code:
Type TreeNode DataAtNode As Variant Dim RightN As Node Dim LeftN As Node End Type
But I hate data structures, especially involving pointers, so does anyone else have an opinion?
