dictionary/map/key-value pairs data structure in C

后端 未结 4 1720
借酒劲吻你
借酒劲吻你 2021-01-07 06:38

How does one construct and access a set of key-value pairs in C? To use a silly simple example, let\'s say I want to create a table which translates between an integer and i

4条回答
  •  难免孤独
    2021-01-07 06:59

    You could consider hash implementation in C language to achieve this. For basics of hash refer to Wikipedia. Refer to this question for more details and links.

    This link gives good overview and implementation details.

提交回复
热议问题