摘要: 0. 字节流与二进制文件 我的代码 我的总结 1.二进制文件与文本文件的区别: 文本文件只能存储char型字符变量。二进制文件可以存储char/int/short/long/float/……各种变量值。但文本文件编辑器就可以读写。比如记事本、NotePad++、Vim等。二进制文件需要特别的解码器。 阅读全文
posted @ 2019-11-26 19:28 zio 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 相关代码: include using namespace std; typedef struct node//创建节点结构 { char data;//数据元素 struct node Lchild;//指向左孩子结点 struct node Rchild;//指向右孩子结点 }BinNode, 阅读全文
posted @ 2019-04-27 18:57 zio 阅读(1884) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(236) 评论(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 阅读(163) 评论(0) 推荐(0) 编辑