【emulate_dictionary__insert_as_best】
  
- UID
- 2
- 积分
- 2914403
- 威望
- 1407234 布
- 龙e币
- 1507169 刀
- 在线时间
- 13521 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-3-3

|
【emulate_dictionary__insert_as_best】
- inputs:
- KeyArray[MaxSize1](NumericArrayRef),
- ValueArray[MaxSize2](NumericArrayRef),
- Key(NumericSimple),
- Value(NumericSimple),
-
- defaultKey(NumericSimple);
- variables: idx(0);
- for idx = 0 to MaxSize1 begin
- if KeyArray[idx] = defaultKey then begin
- KeyArray[idx] = Key;
- ValueArray[idx] = Value;
- break;
- end;
- if (Value > ValueArray[idx]) then begin
- emulate_dictionary__move_right(KeyArray, ValueArray, idx);
- KeyArray[idx] = Key;
- ValueArray[idx] = Value;
- break;
- end;
- end;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|
|
|
|
|
|