以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 计算机英语 』 (http://bbs.xml.org.cn/list.asp?boardid=39) ---- The C Container Library (http://bbs.xml.org.cn/dispbbs.asp?boardid=39&rootid=&id=89915) |
-- 作者:hjx_221 -- 发布时间:3/28/2011 1:38:00 PM -- The C Container Library The C Container Library This page describes the work presented to the French C standardization committee of the AFNOR to be included in the next C standard. This is a preliminary work with the objective of finding out problems and issues with the sample implementation or the specifications of the container library. The objective here is to allow C programmers to use lists, hash tables, flexible arrays, bitstrings and many other containers without being forced to reinvent the wheel each time, and offering a standard interface that allows programs to use this library and remain portable. This proposal is divided in two parts: The specifications of a portable interface to be added to the future C standard. Each interface is described in detail and some sample code is added at the end. This document is both the specification and the documentation of the sample implementation. The sample implementation. This is proposed here to give an idea of how each compiler vendor could implement the library. It is NOT "the" implementation, it is one among many possible implementations. The code hasn't been tested a lot and may contain errors. To find those errors is one of the objectives here. Note: To avoid line endings problems (DOS or Unix line endings). to unzip the file. That will unzip the C text files with the correct line endings of your system Within that zip file you will find:(0) The changelog. (1) The complete specifications so far. Format odt (OpenOffice) or .doc (Microsoft). (2) The code for the sample implementation. (3) A makefile for unix systems. The containers implemented so far in the sample implementation are: Lists (single and double linked) The specifications are still incomplete for some containers like AVL trees, Red-black trees and scapegoat trees. Auxiliary interfaces are provided to: heaps |
-- 作者:hjx_221 -- 发布时间:3/28/2011 1:40:00 PM -- The C Container Library 参考译文: C语言容器库 本页面描述提交给法国C的AFNOR标准化委员会的工作将在未来C标准包括在内。 这是与发现问题,执行问题与样本的容器或图书馆的前期工作规范的目的。 这里的目标是让C程序员使用,而无需被迫推倒重来每次列表,哈希表,灵活的阵列,位串和许多其他容器,并提供一个标准接口,它允许程序使用这个库,并保持移植。 这项建议是分为两个部分: 一种便携式接口的规格被添加到未来的C标准。 每个接口进行了详细说明和一些示例代码是在最后补充道。 这份文件既是规范和样品的执行文件。 示例实现。 这是这里提出一个如何给每个编译器供应商可以实现图书馆的想法。 它不是“”的实施,它是在众多可能实现之一。 该代码没有被测试了很多,可能会包含错误。 为了找到这些错误是在这里的目标之一。 注:为避免行尾问题(DOS或Unix行结尾)请使用解压,一解压缩文件。 这将解压缩的结局你的系统的C的正确路线与文本文件在该压缩文件,你会发现:(0) 变更记录 。 (1)到目前为止,规格齐全。 格式的ODT(OpenOffice的)或。DOC(微软)。 (2)为实现代码示例。 (3)UNIX系统的Makefile。 实施至今的示例实现的容器有: 列表(单,双挂钩) 这些规范仍然是一样,红黑树和AVL树树替罪羊某些容器不完整的。 辅助接口提供: 堆
|
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
31.006ms |