顺序表的查找
<br />#include<iostream><br />using namespace std;<br />typedef int ElemType; <br />struct SSTable <br />{<br /> ElemType *elem;<br /> int length; <br />};<br />int Search_Seq(SSTable ST,ElemType key)<br />{ <br /> ST.elem[0]=key;//设置哨兵元素<br /> in
原创
2010-09-24 21:14:00 ·
531 阅读 ·
0 评论