文件名称:MyOOCFwV1_0
介绍说明--下载内容均来自于网络,请自行研究使用
使用C语言时,经常需要调用malloc()和free()函数来进行动态内存的分配和回收。有些时候,程序员可能会忘记回收分配的动态内存。为了解决这个问题,这里设计了一个代替malloc()和free()函数的数据结构(或者类)——ObjectManager。ObjectManager中提供了objmgr_malloc()和objmgr_free()以及objmgr_show_mem_info()函数。objmgr_malloc()函数负责按字节总数动态分配内存并且予以记录,objmgr_free()函数负责释放内存,objmgr_show_mem_info()可以供程序员随时查看动态内存分布情况。-The functions malloc() and free() are frequently used when we use the C language. Howerver, coders might forget to release the dynamic memory allocated via malloc() sometimes. I have designed the data structure(or a simple class)--ObjectManager in order to solve this problem. ObjectManager has provided 3 core functions objmgr_malloc() and objmgr_free() and objmgr_show_mem_info() to manage and display the dynamic memory. Here, objmgr_malloc() allocates dynamic by byte and keeps the related info as a record, objmgr_free() releases the dynamic memory and deletes the related record,while objmgr_show_mem_info() displays on the console the dynamic memory information.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MyOOCFwV1_0\test\main.c
...........\src\ObjectManager\ObjectManager.c
...........\...\.............\ObjectManager.h
...........\...\strx_zhw\strx_zhw.c
...........\...\........\strx_zhw.h
...........\...\HashMap\HashMap.c
...........\...\.......\HashMap.h
...........\...\.......\ValueString\ValueString.c
...........\...\.......\...........\ValueString.h
...........\...\....\hash.c
...........\...\....\hash.h
...........\...\CommonObject\CommonObject.h
...........\...\HashMap\ValueString
...........\...\ObjectManager
...........\...\strx_zhw
...........\...\OOCFwLogger
...........\...\OOCFwConfig
...........\...\HashMap
...........\...\Hash
...........\...\CommonObject
...........\test
...........\src
MyOOCFwV1_0
...........\src\ObjectManager\ObjectManager.c
...........\...\.............\ObjectManager.h
...........\...\strx_zhw\strx_zhw.c
...........\...\........\strx_zhw.h
...........\...\HashMap\HashMap.c
...........\...\.......\HashMap.h
...........\...\.......\ValueString\ValueString.c
...........\...\.......\...........\ValueString.h
...........\...\....\hash.c
...........\...\....\hash.h
...........\...\CommonObject\CommonObject.h
...........\...\HashMap\ValueString
...........\...\ObjectManager
...........\...\strx_zhw
...........\...\OOCFwLogger
...........\...\OOCFwConfig
...........\...\HashMap
...........\...\Hash
...........\...\CommonObject
...........\test
...........\src
MyOOCFwV1_0