摘要: #include<stdio.h>#include<stdlib.h>int flag=1;//定义标签,用于show()只显示一次树的根结点typedef struct tree{ int data; struct tree *lchild; struct tree *rchild; }treen 阅读全文
posted @ 2018-10-19 15:51 intoin 阅读(2044) 评论(0) 推荐(0) 编辑
摘要: 利用链式栈来实现10进制数转换8进制。 #include<stdio.h>#include<stdlib.h> typedef struct node{ int data; struct node *next;}nodelist,*mylist; //定义一个结点 typedef struct st 阅读全文
posted @ 2018-10-15 13:57 intoin 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 本人初学,代码略粗糙,勿喷。 #include<stdio.h>#include<sys/types.h>#include<string.h>#include<stdlib.h>#include<errno.h>#include<fcntl.h>#include<unistd.h> #define 阅读全文
posted @ 2018-10-14 19:41 intoin 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 本人刚学,有很多问题,希望大家帮忙指出,谢谢 #include<stdio.h>#include<stdlib.h>#define datatype int typedef struct node{ datatype data; struct node *prev; struct node *nex 阅读全文
posted @ 2018-10-10 23:10 intoin 阅读(1279) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h> typedef struct node{ int data;//节点数据 struct node *next;//节点指针,该指针指向该节点的下一节点}listnode,*list;//list指向该节点//初始化单链表list 阅读全文
posted @ 2018-10-08 22:24 intoin 阅读(222) 评论(0) 推荐(0) 编辑