<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          uthashC語言哈希表

          聯(lián)合創(chuàng)作 · 2023-09-28 21:53

          uthash 是一個C語言的哈希表,支持各種結(jié)構(gòu)類型的存儲、添加、刪除,這些操作都在固定的時間完成,跟哈希表本身的大小無關(guān)。鍵也可以是任何類型的數(shù)據(jù)。

          示例代碼:

          #include "uthash.h"
          
          struct my_struct {
              int id;                  /* we'll use this field as the key */
              char name[10];             
              UT_hash_handle hh;       /* makes this structure hashable */
          };
          
          struct my_struct *users = NULL;
          
          void add_user(struct my_struct *s) {
              HASH_ADD_INT( users, id, s );    
          }
          瀏覽 21
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  国产操屄视频 | 欧美曰韩欧美视频 | 一区大宝贝 | 日韩亚洲欧美中文字幕组 | 亚洲艳情一区 |