摘要: Find是折半查找 速度应该是最快了而indexof默认是 for 循环所有item了。 但find使用前必须先排序 sort 否则返回 index错误。示例如下:var lst:TStringList ; i:Integer ;begin lst:=TStringList.Create ; try lst:=TStringList.Create ; lst.CaseSensitive :=true; lst.Delimiter :=','; lst.DelimitedText :=Edit1.Text ; ShowMessage(IntToStr(... 阅读全文
posted @ 2011-09-21 15:48 chinawcs 阅读(6017) 评论(0) 推荐(0) 编辑