登录
首页 » 其他项目 » C 程序设计语言定义了两个标准的内存管理函数:malloc() 和 free()。C 程序员经常使用那些函数在运行时分配缓冲区,以便在函数之间传递数据。然而在许...

C 程序设计语言定义了两个标准的内存管理函数:malloc() 和 free()。C 程序员经常使用那些函数在运行时分配缓冲区,以便在函数之间传递数据。然而在许...

于 2022-03-11 发布 文件大小:1.33 kB
0 230
下载积分: 2 下载次数: 1

代码说明:

C 程序设计语言定义了两个标准的内存管理函数:malloc() 和 free()。C 程序员经常使用那些函数在运行时分配缓冲区,以便在函数之间传递数据。然而在许多场合下,您无法预先确定缓冲区所需的实际大小,这对于构造复杂的 C 程序来说,可能会导致几个根本性的问题。一种自我管理的抽象数据缓冲区概括地给出了抽象缓冲区的伪 C 代码实现,并详细介绍了采用这种机制的优点。-C programming language defines two standard memory management functions: malloc () and free (). C programmers frequently use those functions at run-time allocation of buffers in order to pass data between functions. However, in many occasions, you can not pre-determine the actual size of the buffer required, which for the complex structure of the C program, it may lead to several fundamental questions. A self-management, abstract data buffer generally gives the pseudo-C code for an abstract buffer implementation, and details the advantages of using this mechanism.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 创建一个数组对其中数据进行操作,包括输出,顺序查找,二分查找,冒泡排序,插入排序。...
    创建一个数组对其中数据进行操作,包括输出,顺序查找,二分查找,冒泡排序,插入排序。-Create an array of which the data operations, including output, sequential search, binary search, bubble sort, insertion sort.
    2022-02-28 17:37:03下载
    积分:1
  • Using STL to achieve the basic functions of the Snake, concise algorithm, have r...
    用STL实现了贪吃蛇的基本功能,算法比较精练,有参考价值-Using STL to achieve the basic functions of the Snake, concise algorithm, have reference value
    2022-01-24 09:32:39下载
    积分:1
  • 可以精确计算地图的椭球面积,是根据国土局的文件用C#编程出来的,对搞测绘的人有帮助哦...
    可以精确计算地图的椭球面积,是根据国土局的文件用C#编程出来的,对搞测绘的人有帮助哦-Can be precisely calculated ellipsoid area of the map is based on the Land Bureau of the documents C# Programming out of people who engage in surveying and mapping has helped Oh
    2022-07-26 14:05:03下载
    积分:1
  • 按键精灵v2.10 很老的一个版本,大家试试看,
    按键精灵v2.10 很老的一个版本,大家试试看,-Wizard v2.10 keys, a very old version, U.S. Try
    2023-02-21 00:25:03下载
    积分:1
  • File splitter is a utility to split files acording to size and drives
    File splitter is a utility to split files acording to size and drives-File splitter is a utility to split files acording to size and drives
    2022-11-16 20:40:03下载
    积分:1
  • 用matalb实现了参数可变的极零抵消滤波器还陷波滤波器输入参数既可以应用...
    用matalb实现了参数可变的极零抵消滤波器还陷波滤波器输入参数既可以应用-Matalb achieved with an extremely variable parameter is also zero-offset filter notch filter can be applied to both the input parameters
    2022-05-17 21:16:10下载
    积分:1
  • 实际对象的数学模型并不清楚,难以控制。
    针对实际对象数学模型不明确而难以控制的问题,采用人工免疫网络的离散模 型与学习算法,将人工免疫系统与神经网络结构的优势相结合,提出了一种基于人工免疫 网络的模式识别算法,构造了对象识别的人工免疫网络模型.该算法综合了网络节点的定 位与参数调整以及对基函数的平滑因子实施调谐等功能,有效地解决了径向基函数 (RBF)神经网络模式识别的两个阶段任务,使模式识别的精度有较大的改进.采用两个不 同对象函数进行的仿真试验表明,该算法具有快速收敛性与较高的准确性. -Mathematical model for the actual object is not clear and difficult to control the problem, the use of artificial immune network model and the discrete learning algorithm, artificial immune systems and neural networks combine the advantages of structure, an artificial immune network based on pattern recognition algorithms, Construction of the object identified by artificial immune network model. the algorithm is a combination of network nodes to adjust the position and parameters as well as the basis function implementation of the smoothing factor, tuning and other functions, to effectively solve the Radial Basis Function (RBF) neural network pattern recognition of two phase of the task, so that the accuracy of pattern recognition have greater impro
    2022-05-19 12:01:11下载
    积分:1
  • Prim used for the minimum spanning tree algorithm
    用Prim算法求最小生成树-Prim used for the minimum spanning tree algorithm
    2022-04-24 09:30:53下载
    积分:1
  • Secondary development of one module, the bulk barcode generation, styles: from i...
    二次开发模块 一、条形码的批量生成, 款式:由存货(7)+颜色(2)+尺码(2)+供应码(2)+年份(4)+月份(2)+流水号(6)自由组合生成 面料:由存货(7)+颜色(2)+供应码(2)自由组合生成 (1)由于每件款式的条码是唯一的,其数据量相当大,在数据库存储方面若按以往的方式处理,估计数据库是无法承受。故需采用新的存储方式,在这存储方面就需花较多的时间方可解决。 (2)条码生成后需同时往用友数据库(表:InventoryBarCodeSet)插入数据,以供用友制单时提供对应关系。 -Secondary development of one module, the bulk barcode generation, styles: from inventory (7)+ Color (2)+ Size (2)+ Supply code (2)+ Year (4)+ Month (2) 2B ! serial number (6) to generate ensembles of fabrics: from inventory (7)+ color (2)+ supply code (2) free combination to generate (1) as a result of each style of bar code is the only, the amount of data quite large, if the database storage means in accordance with the previous treatment, it is estimated that the database is not unbearable. Therefore need to adopt a new way of storage in this storage area on the need to spend more time in order to resolve. (2) bar code generated at the same time after UFIDA to database (table: InventoryBarCodeSet) Insert the data for single-UF s
    2022-05-29 12:52:49下载
    积分:1
  • 使手机模拟飞行游戏AirTrafficControl.rar用诺基亚手机可以存放的游戏...
    使手机模拟飞行游戏AirTrafficControl.rar用诺基亚手机可以存放的游戏-phone flight simulation game AirTrafficControl.rar use Nokia phones can be kept in the game
    2022-04-07 12:32:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载