会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
intoin
博客园
首页
新随笔
联系
订阅
管理
2018年10月19日
二叉树的插入和删除
摘要: #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
阅读(2062)
评论(0)
推荐(0)
2018年10月15日
熟悉链式栈
摘要: 利用链式栈来实现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
阅读(121)
评论(0)
推荐(0)
2018年10月14日
用指针实现linux下的文件复制(不覆盖原有内容)
摘要: 本人初学,代码略粗糙,勿喷。 #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
阅读(613)
评论(0)
推荐(0)
2018年10月10日
双向链表的插入(及其疑问)
摘要: 本人刚学,有很多问题,希望大家帮忙指出,谢谢 #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
阅读(1329)
评论(0)
推荐(0)
2018年10月8日
用单链表来实现数据的逆序
摘要: #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
阅读(231)
评论(0)
推荐(0)
公告