摘要: 读取word文档得使用com组件:Microsoft Word 12.0 object library由于office的本不同,组件的版本也会不同,我电脑上装的office2007所以版本是12.0使用该组件提供的类和方法来读取Word文档首先在项目中添加com引用: 然后可以用Microsoft. 阅读全文
posted @ 2022-03-04 14:25 电子_精灵 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 读取word,首先得添加引用,不同的word版本对应着不同的引用部分版本对应引用如下:Microsoft Word 11.0 object library对应Office2003Microsoft Word 12.0 object library对应Office2007Microsoft Word 阅读全文
posted @ 2022-03-04 14:15 电子_精灵 阅读(921) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /* *c#函数定义与调用 *函数(方法)作用: *功能分块处理,使 阅读全文
posted @ 2022-03-04 13:09 电子_精灵 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 遍历密码算法 #include "iostream" #include "vector" #include "string" using namespace std; int findPwd(int deep, string parent); /*密码组成,有数字,小写字母,大写字母组成*/ sta 阅读全文
posted @ 2022-03-04 13:04 电子_精灵 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1. 前言 本文主要是基于Aviad P.的2篇文章:A C# List Permutation Iterator,A C# Combinations Iterator。分别介绍了如何遍历排列组合情况。使用的算法不需要额外分配空间,所以比较高效。 2. 实现 1 public static clas 阅读全文
posted @ 2022-03-04 12:39 电子_精灵 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 如果你是一枚Coder,但是你不知道Github,那么我觉的你就不是一个菜鸟级别的Coder,因为你压根不是真正Coder,你只是一个Code搬运工。 但是你如果已经在读这篇文章了,我觉的你已经知道Github了。 正是Github,让社会化编程成为现实。 什么是 Github? github是一个 阅读全文
posted @ 2022-03-04 12:22 电子_精灵 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 写代码之前,需要引用对应的DLL文件: 1、Interop.Microsoft.Office.Interop.Word.dll (网上可以下载) 2、mscorlib.dll (添加引用 >.NET中即可找到) 1 using Microsoft.Office.Interop.Word; 2 usi 阅读全文
posted @ 2022-03-04 12:13 电子_精灵 阅读(247) 评论(0) 推荐(0) 编辑