C中的向量,哈希表等库?我放弃了C ++ [英] vector, hash table, etc. library in C? I am abandoning C++

查看:66
本文介绍了C中的向量,哈希表等库?我放弃了C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我很遗憾地说C ++糟透了。

我直到最近才使用它,因为它的容器库和其他原因没有



简而言之,并发,中断,异常是成分

当根据C ++配方混合产生灾难时。


今天我搜索了对于矢量,字典,

和网络上的其他数据结构的纯C实现,但结果包含这么多

C ++噪声,它就像寻找一个大海捞针。可以

任何人请指点我这么真实的C库吗?

大部分义务

- 。

Markus Neuhaber

Hello, I regret to say that C++ sucks big rocks.
I used it until recently because of its container libraries and for no
other reason.
In a nutshell concurrency, interruptions, exceptions are ingredients
which when mixed according to a C++ recipe produce a disaster.

Today I searched for a pure C implementations of vector, dictionary,
and other data structures on the net but the results contained so much
C++ noise that it''s like looking for a needle in a haystack. Can
anybody please point me to such a true and tried C library?
Much obliged
--.
Markus Neuhaber

推荐答案



mn ********* @ berlin.com 写道:


mn*********@berlin.com wrote:
您好,我很遗憾地说C ++糟透了大石头。
我直到最近才使用它,因为它有容器库而且没有其他原因。简而言之,并发,中断,异常是成分
当混合根据一个C ++方法产生了一个灾难。

今天我在网上搜索了矢量,字典,
和其他数据结构的纯C实现,但结果包含了很多内容。噪音,就像在大海捞针一样。可以
任何人请指点我这样一个真实的C库?
非常有责任
- 。
Markus Neuhaber
Hello, I regret to say that C++ sucks big rocks.
I used it until recently because of its container libraries and for no
other reason.
In a nutshell concurrency, interruptions, exceptions are ingredients
which when mixed according to a C++ recipe produce a disaster.

Today I searched for a pure C implementations of vector, dictionary,
and other data structures on the net but the results contained so much
C++ noise that it''s like looking for a needle in a haystack. Can
anybody please point me to such a true and tried C library?
Much obliged
--.
Markus Neuhaber




我不认为你放弃C ++的原因是有效的。但是

嘿,这是你的选择。我倾向于使用C和C ++ - 这取决于你在做什么,你用了多少语言

知道,以及可能存在的遗留物或其他限制。


看看这个: http://softwaresensation.com/memsl/

我认为它拥有大多数用途所需的所有容器:


#单个,双重和循环链接列表

#AVL平衡和螺纹二进制树

#动态哈希表
#堆栈,队列和队列(使用数组或链接列表)

#集合(Pascal实现,带联合,差异,交集等)

#包,表和词典

#优先级堆(使用MemSL多维数组分配器)

#优先搜索队列

这是一个C库(C ++包装类也可用) - 已经超过10年的

使用(因此他们的文件说明了)并且它是开源的(你可以想要如果你'b $ b b b)虽然他们的网站说它的开源资源,但是他正在做任何事情

商业广告 - 文件有一些非常可怕/简洁的法律

部分)...


享受。



I don''t think the reasons you gave for abandoning C++ are valid. But
hey, its your choice. I tend to use both C and C++ - it depends pretty
much on what you''re doing, how much of the language you''re using you
know, and any legacy stuff or other restrictions that may be placed on you.

Have a look at this: http://softwaresensation.com/memsl/

I think it has all the containers you will need for most purposes :

# Single, Double, and Circular Linked Lists
# AVL Balanced and Threaded Binary Trees
# Dynamic Hashing Tables
# Stacks, Queues and Dequeues (using arrays or linked lists)
# Sets (Pascal implementation, with union, difference, intersection, etc.)
# Bags, Tables and Dictionaries
# Priority Heaps (uses the MemSL multi-dimensional array allocator)
# Priority Search Queue
It is a C library (C++ wrapper classes also available) - It has been in
use for more than 10yrs (so their docu says) and it is open source (you
may want to double check on the licensing if you''re doing anything
commercial though - the docu has some pretty scary/terse legal
sections), although their website says its opensource...

Enjoy.



mn ********* @ berlin.com 写道:
您好,我很遗憾地说C ++糟透了。
我用过它直到最近才因为它的容器库而没有其他原因。简而言之,并发,中断,异常是成分
根据C ++配方混合会产生灾难。
Hello, I regret to say that C++ sucks big rocks.
I used it until recently because of its container libraries and for no
other reason.
In a nutshell concurrency, interruptions, exceptions are ingredients
which when mixed according to a C++ recipe produce a disaster.




出于好奇,你能否详细说明你b
$ b的一些问题。在我的公司,我们使用C ++来利用并发,

,有时还有例外。虽然我不打算使用中断编程,但它们肯定会在不同程度上受到支持,具体取决于您的操作系统和运行时的实现(对C来说也是如此)。



Out of curiosity, can you please elaborate on some of the problems you
are having. In my firm, we use C++ to take advantage of concurrency,
and sometimes exceptions. While I don''t program with interrupts, they
are certainly supported to varying degrees depending on your OS and
runtime implementation (the same is true of C).


2006年4月22日06:09:24 -0700,mn ********* @ berlin.com

< mn ********* @ berlin.com>写道:
On 22 Apr 2006 06:09:24 -0700, "mn*********@berlin.com"
<mn*********@berlin.com> wrote:
您好,我很遗憾地说C ++糟透了。


有时是的,大部分都没有。

我直到最近才使用它,因为它有容器库而且没有其他原因。简而言之,并发,中断,异常是成分
根据C ++配方混合产生灾难。
今天我搜索了矢量,字典,
和其他数据的纯C实现网上的结构,但结果包含了很多的C ++噪音,就像在大海捞针一样。可以
任何人请指点我这样一个真实的C库吗?
Hello, I regret to say that C++ sucks big rocks.
Sometimes yes, mostly no.
I used it until recently because of its container libraries and for no
other reason.
In a nutshell concurrency, interruptions, exceptions are ingredients
which when mixed according to a C++ recipe produce a disaster.
Today I searched for a pure C implementations of vector, dictionary,
and other data structures on the net but the results contained so much
C++ noise that it''s like looking for a needle in a haystack. Can
anybody please point me to such a true and tried C library?




一个''试过''C库是GLib: http://www.gtk.org/api/

你可以还可以尝试一些未经验证的库:
http: //freshmeat.net/projects/libcfl/?topic_id=809
http://www.ioplex.com/~miallen/libmba/
http://libtc.sourceforge.net/


免责声明:Haven没有使用这些图书馆而且不能推荐它们

因此。


祝你好运,

Roland Pibinger



One ''tried'' C library is GLib: http://www.gtk.org/api/
You may also try some ''untried'' libraries like:
http://freshmeat.net/projects/libcfl/?topic_id=809
http://www.ioplex.com/~miallen/libmba/
http://libtc.sourceforge.net/

Disclaimer: Haven''t used those libraries and cannot recommend them
therefore.

Good luck,
Roland Pibinger


这篇关于C中的向量,哈希表等库?我放弃了C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆