By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,929 Members | 631 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,929 IT Pros & Developers. It's quick & easy.

Binary Tree

P: 12
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 :)
Dec 9 '06 #1
Share this Question
Share on Google+
3 Replies


Expert 5K+
P: 8,434
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.
Dec 10 '06 #2

P: 12
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
Dec 11 '06 #3

Expert 5K+
P: 8,434
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.
Dec 11 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.