Binary Tree

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sagi
    New Member
    • Oct 2006
    • 12

    Binary Tree

    Hi, I need to build a binary tree in Visual Basic 6.0

    but I only find code in Visual Basic 2005

    please help it's important

    Thanks :)
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by sagi
    Hi, I need to build a binary tree in Visual Basic 6.0 but I only find code in Visual Basic 2005
    If you post the code here, maybe we can translate it back to VB6.

    Comment

    • sagi
      New Member
      • Oct 2006
      • 12

      #3
      I need to create a tree node, but VB6 does not support classes

      Friend Class TreeNode
      Public Board(3, 3, 3) As Char
      Public Turn As Integer
      Public Son As TreeNode
      Public NextNode As TreeNode
      End Class

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by sagi
        I need to create a tree node, but VB6 does not support classes

        Friend Class TreeNode
        Public Board(3, 3, 3) As Char
        Public Turn As Integer
        Public Son As TreeNode
        Public NextNode As TreeNode
        End Class
        Not so. I don't have much experience with them, but VB6 most definitely does support classes.

        For a start, I think you have to create a class module. If you go to the pull-down list of module types (form, MDI form etc), one of them is Class Module.

        Comment

        Working...