11 2015 档案
二叉排序树
摘要:#include #include #include typedef struct binary_sort_Tree{ int data; struct binary_sort_Tree *left,*right;}BSTNode;BSTNode ...
KMP算法
摘要:#include int main(){ char str_fat[] = "asdfghjkl"; char str_son[] = "jkl"; int temp = KMP_function(str_fat,str_son,0); ...
顺序表的实现
摘要:#include #include #define LISTSIZE 100 #define LISTINC 10 #define LEN sizeof(SqList) typedef struct sequenceList{ int *elem;...
利用栈实现进制转换1,常用进制转换成十进制
摘要:根据栈的特性,FILO,很方便的就可以实现进制转换。 关于栈的一系列操作,在此不再做任何赘述。我这里只是介绍一下压栈(psuhStack),和弹栈(popStack): 1.压栈:就是把元素一个一个的压入栈中。例如:八进制的数值 12345670 进栈...