会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zio
博客园
首页
新随笔
联系
订阅
管理
2019年11月26日
Java流与文件作业
摘要: 0. 字节流与二进制文件 我的代码 我的总结 1.二进制文件与文本文件的区别: 文本文件只能存储char型字符变量。二进制文件可以存储char/int/short/long/float/……各种变量值。但文本文件编辑器就可以读写。比如记事本、NotePad++、Vim等。二进制文件需要特别的解码器。
阅读全文
posted @ 2019-11-26 19:28 zio
阅读(262)
评论(0)
推荐(0)
2019年4月27日
使用递归法建立二叉树
摘要: 相关代码: include using namespace std; typedef struct node//创建节点结构 { char data;//数据元素 struct node Lchild;//指向左孩子结点 struct node Rchild;//指向右孩子结点 }BinNode,
阅读全文
posted @ 2019-04-27 18:57 zio
阅读(1928)
评论(0)
推荐(0)
2019年3月28日
编程练习(用递归处理线性表的问题)
摘要: include include using namespace std; define OK 1 define ERROR 0 typedef int Status; typedef struct LNode { int data;//结点的数据域 struct LNode next;//结点的指针
阅读全文
posted @ 2019-03-28 23:32 zio
阅读(244)
评论(0)
推荐(0)
线性表总结
摘要: 1.代码段1简介:删除顺序表的重复元素 代码1: void DelSameNode(List &L) //1 { //2 if(L length==0) //3 return ; //4 int a[L length]; //5 int i=0,j,k,flag; //6 for(j=L lengt
阅读全文
posted @ 2019-03-28 23:28 zio
阅读(174)
评论(0)
推荐(0)
公告