摘要: 以前使用的File是操作小的文本文件,用的并不常见,FileStream(操作字节),可以操作所有格式的文件,用途较广泛 下面做一个通过文件流给文件加密解密的小软件. using System; using System.Collections.Generic; using System.Compo 阅读全文
posted @ 2017-04-16 19:12 逍遥小天狼 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 说明:涉及到知识点:TreeView控件,递归调用, 1 先把架子搭起来 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Draw 阅读全文
posted @ 2017-04-16 16:32 逍遥小天狼 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 上一篇简单介绍了File文本文件的操作,这次简单介绍Directory的操作 Directory主要用于操作文件夹 常用方法 CreateDirectory;创建一个新的文件夹 Delete;删除文件夹 Move; 剪切文件夹 Exist;判断指定文件夹是否存在 具体应用 if(!Directory 阅读全文
posted @ 2017-04-16 14:35 逍遥小天狼 阅读(295) 评论(4) 推荐(0) 编辑
摘要: 1 对文件的操作-File类 常用的操作: File.Exis();判断文件是否存在 File.Create ();创建 File.Move();剪切 File.Copy();复制 File.Delete();删除 using System; using System.Collections.Gen 阅读全文
posted @ 2017-04-16 11:35 逍遥小天狼 阅读(200) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 日期的转换 { //2012-12-21 //2 阅读全文
posted @ 2017-04-16 10:41 逍遥小天狼 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 说明:https://pan.baidu.com/s/1nvPqhDJ所需文件在此目录下对应的位置 1 先做一个简单的英汉翻译词典.先搭UI页面 2 将百度网盘中提供的资料放置到bin\debug目录下 3 编写代码 using System; using System.Collections.Ge 阅读全文
posted @ 2017-04-15 22:17 逍遥小天狼 阅读(215) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 集合简单练习 { class Program { 阅读全文
posted @ 2017-04-15 21:09 逍遥小天狼 阅读(140) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 字符串的简单练 阅读全文
posted @ 2017-04-14 20:35 逍遥小天狼 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 先把整体UI建好 1 分析需要个计算的基类,一个构造函数,两个属性,一个方法 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Ta 阅读全文
posted @ 2017-04-14 13:32 逍遥小天狼 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 一以贯之 :把子类看作父类,统一看待 假设用户输入一个电脑品牌,判断该品牌是否存在 1 定义一个抽象"电脑类" using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sy 阅读全文
posted @ 2017-04-14 11:11 逍遥小天狼 阅读(116) 评论(0) 推荐(0) 编辑