欢迎来到我的博客https://www.cnblogs.com/veis/

https://www.cnblogs.com/veis/p/14182037.html

摘要: 1、源代码 #include "list.h" // 1、创建头结点 Node * CreateHeadeNode(void) { Node *pHead = (Node *)malloc(sizeof(Node)); pHead->m_pNext = NULL; return pHead; } / 阅读全文
posted @ 2020-05-18 21:49 veis 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1、源代码 #include "queue.h" /** * [CreateQueue 创建一个队列] * @param nCount [队列的长度] * @return [队列指针] */ p_queue CreateQueue(uint32_t nCount) { p_queue p = mal 阅读全文
posted @ 2020-05-18 21:26 veis 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 1.源代码 #include "stack.h" /** * [CreateStack 创建一个栈结构] * @param p [要创建的栈类型指针] * @param nSize [栈大小] */ p_stack CreateStack(int nSize) { p_stack ps = mall 阅读全文
posted @ 2020-05-18 18:37 veis 阅读(327) 评论(0) 推荐(0) 编辑