-
MiniSpanTree
建立图并求解图的最小二叉树并且输出结果,基础的最小二叉树算法(MiniSpanTree algorithm)
- 2019-01-03 18:46:10下载
- 积分:1
-
解压缩文件示例(rar、zip、7zip、Gzip、tar...等)
本程序是基于 sharpcompress-master 设计的演示程序。开原地址:https://github.com/adamhathcock/sharpcompress。1. 程序主要展示了压缩文件的解压缩,支持的文件类型有:rar、zip、7zip、Gzip、tar......等压缩格式,展示了密码解压、分卷解压、解压进度等功能。2. 不支持“带密码的分卷压缩文件”的解压;无密码分卷压缩、单个带密码文件正常解压。3. 此程序在设计中,对组件源代码进行了修改,与原组件代码对照查看。4、sharpcompress-master组件功能繁多,比如,文件压缩为图片、压缩文件内文件添加删除、更名等等,对照现有的压缩软件,功能均具备,可在代码中查看使用。本示例只是展示了解压缩功能。此程序为识别全部压缩格式,未引用DLL,全部为cs文件,如有错误,自行对照修正。private void Uncompress(string archiveFile, string destinationPath, string password = null) { var archive = ArchiveFactory.Open(archiveFile, new ReaderOptions() { Password = password, LeaveStreamOpen = true }); volumes = archive.Entries.Count(); archive.EntryExtractionBegin = archive_EntryExtractionBegin; archive.FilePartExtractionBegin = archive_FilePartExtractionBegin; archive.CompressedBytesRead = archive_CompressedBytesRead; Task.Run(() => { long order = 0; foreach (var entry in archive.Entries) { if (!entry.IsDirectory) { entry.WriteToDirectory(destinationPath, new ExtractionOptions() { ExtractFullPath = true, Overwrite = true, }); } order ; this.CrossThreadCalls(() => { if (volumes > 1) { progress[0].Value = CreatePercentage(order, volumes); } }); } MessageBox.Show("解压缩任务完成 !"); }); } private void archive_EntryExtractionBegin(object sender, ArchiveExtractionEventArgs e) { entryTotal = e.Item.Size; info_builde1 = "提取文件: " e.Item.Key ";"; } private void archive_FilePartExtractionBegin(object sender, FilePartExtractionBeginEventArgs e) { partTotal = e.Size; info_builde2 = "分卷:" e.Name ";"; } private void archive_CompressedBytesRead(object sender, CompressedBytesReadEventArgs e) { string percentage = entryTotal.HasValue ? CreatePercentage(e.CompressedBytesRead, entryTotal.Value).ToString() : "Unknown"; info_builde = info_builde1 info_builde2 "字节:" e.CompressedBytesRead ";百分比:" percentage "%"; this.CrossThreadCalls(() => { compress_Info.Text = info_builde; progress[1].Value = int.Parse(percentage) > 100 || int.Parse(percentage) < 0 ? 100 : int.Parse(percentage); if (volumes < 2) progress[0].Value = progress[1].Value; Application.DoEvents(); }); } private int CreatePercentage(long n, long d) { return (int)(((double)n / (double)d) * 100); }
- 2019-07-21下载
- 积分:1
-
LTC6803-2单体样均衡
电动汽车电池包从控板软件,采用的硬件平台:S9G64(freescale),选用凌特方案,芯片LTC6803-2,程序在多家电动车上使用,有较好的效果。
- 2022-05-08 07:32:15下载
- 积分:1
-
ir
说明: PIC单片机红外线遥控接收解码实例
//芯片配置字,看门狗关,上电延时开,掉电检测关,低压编程关,加密,4M晶体HS振荡(PIC Microcontroller Infrared Remote Control Receiver Decoder instance of// chip configuration word, watchdog off, power-on delay to open, brown-out detection pass, low-voltage programming off, encryption, 4M crystal oscillator HS)
- 2010-03-05 19:40:41下载
- 积分:1
-
Dijkstra(matlab)
暴强Dijkstra算法求任意两点间最短路径(matlab程序),一种求最大流的程序(Floyd shortest path algorithm MATLAB program, graph theory algorithms very practical)
- 2013-02-03 17:24:58下载
- 积分:1
-
BH_1750
说明: 使用51单片机,通过BH1750获得光强值,数据处理后,使用lcd1602显示。(The light intensity value is obtained by BH1750 using 51 single chip computer. After data processing, it is displayed by lcd1602)
- 2020-06-20 17:20:02下载
- 积分:1
-
Cpp1
加对地支路、非标准变比、稀疏矩阵的潮流计算(Power flow calculation)
- 2015-02-01 13:06:16下载
- 积分:1
-
超市版进销存系统,基于C#2010+SQLSERVER
一个功能实用强大的超市进销存系统,基于C#2010+SQLSERVER开发,属于小型的超市进销存销售管理系统,可对中小型超市进行管理,实现的功能有:
用户交互界面的实现。
对进货信息进行有效的管理。
对用户输入的数据,进行严格的数据检验,尽可能的避免人为错误。
对商品销售信息进行有效的管理。
管理商品库存信息。
系统应最大限度地实现易维护性和易操作性。
本进销存系统登录用户名为:Tsoft,密码为:111。
- 2022-07-11 01:50:34下载
- 积分:1
-
cjctor
VC 矢量图实现无级缩放,支持格式有WMF和EMF文件,不错的源码(VC vector to achieve stepless zoom, support format WMF and EMF files, good source code)
- 2018-11-27 03:37:05下载
- 积分:1
-
RFID读卡器资料
本次上传RC522的资料,对正在学习rc522的朋友非常有帮助!
- 2023-04-19 11:05:04下载
- 积分:1