![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
cauclh
感性比理性多三分之一的程序猿一枚
展开
-
链表的建立
#include #include #include typedef struct node{int data;struct node *next;}Node;void creatt(Node *head, int n){int k=0;for(int i=0;i{Node *b=(Node *)malloc(sizeof(Node));b-原创 2014-04-11 19:03:04 · 639 阅读 · 0 评论 -
二叉排序树的建立
#include #include #include int k;typedef struct treeNode{ int val; struct treeNode *left,*right;}Node;Node *root;Node *newnode(int v){ Node *u=(Node*)malloc(sizeof(Node)); if(u != NULL) {原创 2014-04-12 21:00:45 · 556 阅读 · 0 评论