我被分配任务制作自己的内存管理器类,但我真的不知道从哪里开始。我的指示是:
//1> write a memman allocation function
//2> insure the alloce functions returns unused addresses
//3> once all memman memmory is used up, subsequent alloces return NULL
//4> enable freeing of memory and subsequent reuse of those free'd regions
我已经尝试搜索有关处理内存分配的任何指南,但并不太成功。