C容器和持久库? [英] C container and persistent library ?
问题描述
您好,
i有一些程序部分需要从C ++降级到C.
我看了它并在模拟时手动的类系统不是很难,我真的很想念我的模板和容器类型。有没有
任何c的库都有通用(又名void *指针)
哈希表,链表和btree'的?如果有办法阅读/
将这样的容器写入磁盘,那将是完美的。
谷歌没有找到任何东西,但我可以'' t相信你所有的一切
一直在重写这段代码。
Hello,
i have a few program parts that need a downgrade from C++ to C.
I looked at it and while emulating the class system manually is not
that hard, i really miss my templates and container types. Is there
any any library for c that has generic (aka void* pointer)
hashtables, linked lists and maybe btree''s ? If there is a way to read/
write such containers to disk it would be perfect.
Google didn''t found anything but i can''t believe that all you are
rewritting this code all the time.
推荐答案
llothar< ll *****@web.dewrote:
llothar <ll*****@web.dewrote:
[...]有没有
任何具有泛型的c的库(又名void *指针)
哈希表,链表和btree'的?如果有办法阅读/
将这样的容器写入磁盘,那将是完美的。
[ ... ] Is there
any any library for c that has generic (aka void* pointer)
hashtables, linked lists and maybe btree''s ? If there is a way to read/
write such containers to disk it would be perfect.
你可以试试glib, http://www.gtk.org/api/2.6/glib/index.html 。
-
pa at panix dot com
You might try glib, http://www.gtk.org/api/2.6/glib/index.html .
--
pa at panix dot com
3月2日下午3:43,llothar < llot ... @ web.dewrote:
On Mar 2, 3:43 pm, "llothar" <llot...@web.dewrote:
你好,
i有几个需要降级的程序部分从C ++到C.
我看着它并且手动模拟类系统并不是很难,我真的很想念我的模板和容器类型。有没有
任何c的库都有通用(又名void *指针)
哈希表,链表和btree'的?如果有办法阅读/
将这样的容器写入磁盘,那将是完美的。
谷歌没有找到任何东西,但我可以'' t相信你所有的一切都是
一直在重写这段代码。
Hello,
i have a few program parts that need a downgrade from C++ to C.
I looked at it and while emulating the class system manually is not
that hard, i really miss my templates and container types. Is there
any any library for c that has generic (aka void* pointer)
hashtables, linked lists and maybe btree''s ? If there is a way to read/
write such containers to disk it would be perfect.
Google didn''t found anything but i can''t believe that all you are
rewritting this code all the time.
我喜欢这些:
http://eternallyconfuzzled.com/jsw_home.aspx
这总是一个简单的赌注:
http://sourceforge.net/search/index.php
Wiki几乎总是有代码链接:
http://en.wikipedia.org/ wiki / Hash_table
http://en.wikipedia.org / wiki / Linked_list
http://en.wikipedia。 org / wiki / Btree
或google:
http://www.google.com/search?sourcei...algorithm+code
或其他什么。找到这些东西并不需要多少时间。
I like these:
http://eternallyconfuzzled.com/jsw_home.aspx
This is always an easy bet:
http://sourceforge.net/search/index.php
Wiki almost always has code links:
http://en.wikipedia.org/wiki/Hash_table
http://en.wikipedia.org/wiki/Linked_list
http://en.wikipedia.org/wiki/Btree
Or google:
http://www.google.com/search?sourcei...algorithm+code
or whatever. It doesn''t take much moxie to find this stuff.
3月2日下午4:59,user923005 < dcor ... @ connx.comwrote:
On Mar 2, 4:59 pm, "user923005" <dcor...@connx.comwrote:
找到这些东西并不需要多少时间。
It doesn''t take much moxie to find this stuff.
但是找到它确实带来了写它的乐趣
你自己,这就是C的全部意义。如果你没有用b $ b实现一个通用的自序列表哈希表,你能否自称是一个C程序员吗?
-bluejack
But finding it does take the fun out of writing it
yourself, which is what C is all about. Can you
really call yourself a C programmer if you haven''t
implemented a generic self-serializing hashtable?
-bluejack
这篇关于C容器和持久库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!