学习笔记---动态数组实现
<br />看李先静的《系统程序员的成长计划》里面的动态数组的实现甚是巧妙,整理如下:<br /> <br /> <br />typedef.h:<br />#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#ifndef TYPEDEF_H
#define TYPEDEF_H
typedef enum _Ret
{
RET_OK,
RET_OOM,
RET_STOP,
RET_INVALID_PARAMS,
原创
2011-04-07 23:17:00 ·
1391 阅读 ·
2 评论