Steven, 在Chinasmile 的问题我在这里解答了. 关于STREAM我想你在相关书上能找到答案吧 What are the advantages and disadvantages of using a Binary Search on a tree? What is the difference between a vector and an array?

guest (fang)
The advantage of binary search tree is only take o(finding) time to insert and delete one element, but because it is not a balance binary search tree, so the height of tree can be o(n) , it will take o(n) time to finding an element.

A vector looks like an expandable array , but vector provide functions to insert and delete element by postion. Array can only be passed by reference, but vector can be passed by reference and value. Array can not be return value of a function , but vetctor may be the return value of a function.
2001-4-10 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: a c++ test for c++ friends

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论