to7str

   ::  ::  :: 联系 ::  :: 管理

随笔分类 -  C语言补习

C+数据结构
摘要:【1】ffmpeg+mingw32编译 借鉴 https://blog.csdn.net/gjpzl/article/details/97616457 (1)准备环境 下载 https://github.com/rageworx/ffmpeg-2.2-mingw.git https://www.li 阅读全文
posted @ 2020-01-01 23:36 to7str 阅读(128) 评论(9) 推荐(0)

摘要:#include#includetypedef struct{ char *mem; char len;}m_table_t;int table_cmp(m_table_t *p1, m_table_t *p2){ int ret; if(p1->len == p2->le... 阅读全文
posted @ 2015-04-04 16:45 to7str 阅读(198) 评论(0) 推荐(0)

摘要:#include #include #include int str_split(char *input, char *output, int *out){ char *p; int i,in_len,len,max,flag; in_len = strlen(input)... 阅读全文
posted @ 2015-04-04 16:43 to7str 阅读(194) 评论(0) 推荐(0)

摘要:#include#include#define DEBUG ({for(k = l ; k x) j--; /* 从右向左找第一个小于x的数 */ if(i %d\n", s[i], s[j]); s[j--] = s[i]; } } printf("s[%d]%d <--- %d\n",i, s[i], x); s[i] = x; DEBUG;printf("\n"); quickSort(s, l, i - 1); qui... 阅读全文
posted @ 2013-08-07 22:42 to7str 阅读(191) 评论(0) 推荐(0)

摘要:#include<stdlib.h>#include<stdio.h>typedef struct node { struct node * lchild; struct node * rchild; int data; }BiTNode,*BiTree; /*生成节点*/ BiTNode *MakeNode(int item) { BiTNode * pnode = (BiTNode *)malloc(sizeof(BiTNode)); if(pnode) { pnode->data = item; ... 阅读全文
posted @ 2012-10-17 21:48 to7str 阅读(249) 评论(0) 推荐(0)

摘要:#include<stdio.h>#include<stdlib.h>#include<string.h>typedef struct node{ int data; struct node *next; struct node *pre;}Node;Node *pHead=NULL;void insert(Node *pNode){ if(NULL == pHead) { pHead = pNode; pHead->next = pNode; pHead->pre = pNode; return; } /*插头法*/ pNode->nex 阅读全文
posted @ 2012-10-16 20:42 to7str 阅读(194) 评论(1) 推荐(0)

摘要:#include<stdio.h>#include<stdlib.h>#include<string.h>struct node{ int data; struct node *next;};struct node *pHead = NULL;void display(void ){ struct node *p; p = pHead; while(NULL != p) { printf("%d ", p->data); p = p->next; } printf("\n\r");}void insert( 阅读全文
posted @ 2012-10-15 23:45 to7str 阅读(202) 评论(0) 推荐(0)