数据结构
南科1号
半路出家,码农一枚!
展开
-
线索二叉树的实现的小例子,VC++6.o测试通过
<br />#include <stdio.h><br />#include <stdlib.h><br /><br />char s[]="abd##e##c##";<br />int count=0;<br />typedef enum{Link,Thread}PointerTag;<br />typedef struct BiThrNode<br />{<br /> char data;<br /> struct BiThrNode *lchild,*rchild;<br /> in原创 2010-12-16 10:05:00 · 653 阅读 · 0 评论 -
二叉树生成,前序、中序、后序、层次遍历的小例子!
<br />#include <stdio.h><br />#include <stdlib.h><br /><br />char s[]="abd##e##c##";<br />int count=0;<br />typedef struct node<br />{<br /> char data;<br /> struct node *lchild,*rchild;<br /> <br />}NODE;<br /> <br /> <br /> <br />NODE *create()<原创 2010-12-16 10:10:00 · 1740 阅读 · 0 评论 -
矩阵直接转置和快速转置的小例子,VC++6.0通过
<br />#include <stdio.h><br />#include<stdlib.h><br />#define MAXSIZE 20<br />typedef struct<br />{<br /> int i;<br /> int j;<br /> int e;<br />}Triple;<br />typedef struct<br />{<br /> int mu;<br /> int nu;<br /> int tu;<br /> Triple原创 2010-12-17 07:37:00 · 932 阅读 · 0 评论 -
今天学习了关于C++ 中可变参数个数函数的使用!
VA_LIST 是在C语言中解决变参问题的一组宏 他有这么几个成员 1) va_list型变量: #ifdef _M_ALPHA typedef struct { char *a0; /* pointer tofirst homed integer argument */ int offset; /* byte offset ofnex转载 2011-10-17 11:09:17 · 952 阅读 · 0 评论