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