你问这个问题说明你没有对数据结构有本质的认识,谁说VB不能描述数据结构?链表、队列、堆栈、二叉树、图都可以描述。 比如:描述链表。 public type ListNode //链表接点类型 dim Data as Integer dim Next as Integer end typepublic Node(0 TO 12) as ListNode //申明链表接点数组,也可以申明为动态数组Dim NodeCount as Integer //记录当前接点总数量//返回新加入接点的索引 Public Function AddNode(Byval Data As Integer) as IntegerNode(NodeCount)=Data NodeCount =NodeCount +1 return NodeCount-1;end Function..........其他的类似,其实只要把数据结构的原理弄清楚了,再哪里都是一样实现,因为数据结构从本质上来讲是一种算法的集合,应该是与语言无关的。
http://expert.csdn.net/Expert/topic/1041/1041643.xml?temp=.3976862修改数组的SafeArray结构模拟指针
http://www.csdn.net/develop/author/netauthor/AdamBear/
比如:描述链表。
public type ListNode //链表接点类型
dim Data as Integer
dim Next as Integer
end typepublic Node(0 TO 12) as ListNode //申明链表接点数组,也可以申明为动态数组Dim NodeCount as Integer //记录当前接点总数量//返回新加入接点的索引
Public Function AddNode(Byval Data As Integer) as IntegerNode(NodeCount)=Data
NodeCount =NodeCount +1
return NodeCount-1;end Function..........其他的类似,其实只要把数据结构的原理弄清楚了,再哪里都是一样实现,因为数据结构从本质上来讲是一种算法的集合,应该是与语言无关的。
如果真的用Basic可以很好的描述数据结构的话,我想那些计算机专家也不是只干饭的,他们早就出了Basic版的数据结构教程了!!!!!!