链表
文章平均质量分 77
zhongchengl
这个作者很懒,什么都没留下…
展开
-
二叉树的递归 非递归 先序 中序 后序及层次遍历代码实现
二叉树的递归 非递归 先序 中序 后序及层次遍历代码实现 其实这个代码还是有点缺陷的 如果谁有耐性看完的话 帮我改一下 ,这个二叉树的建立可以自己手动的,只要把main注释里面的一些东西去掉就行了,但是,用了if语句选择之后就不行了 不知道为什么 #include #include #include struct Binode { char data; str原创 2012-05-31 22:45:56 · 1453 阅读 · 1 评论 -
谁能帮我看看错在哪里 A+B for matrices
谁能帮我看看这个程序 我逻辑上觉得没错误 但是运行不成功 功能很简单 就是 两个矩阵相加 然后数出行全部为0 和列全部 为0的个数 #include int main() { int flag=1; int temp=0; int count; int i,j; int m,n; int a[10][10]; while(scanf("%d",&m)) { co原创 2012-06-09 23:25:46 · 712 阅读 · 3 评论 -
链表的相关操作
#include #include #include typedef struct LNode { int data; struct LNode * next; }node,*pnode,*linklist; pnode create_list(void);//创建一个链表 void traverse_list(pnode phead);//遍历整个链表 bool is原创 2012-05-23 22:51:00 · 377 阅读 · 0 评论