摘要: using System.IO; string path = @"D:\accountDaoRu\"; if (Directory.Exists(path) == false) { Directory.CreateDirectory(path); } if (Directory.Exists(Ser 阅读全文
posted @ 2022-03-27 11:41 电子_精灵 阅读(936) 评论(0) 推荐(0) 编辑
摘要: this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出; 2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出; 3.Application.ExitTh 阅读全文
posted @ 2022-03-27 08:24 电子_精灵 阅读(946) 评论(0) 推荐(0) 编辑
摘要: 具体如下所示: using System; namespace DotNet.Utilities { /// <summary> /// 农历属性 /// </summary> public class CNDate { /// <summary> /// 农历年(整型) /// </summary 阅读全文
posted @ 2022-03-25 17:01 电子_精灵 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 想了解C#实现农历日历的方法的相关内容吗,在本文为您仔细讲解C#农历日历的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:C#,农历,日历,方法,下面大家一起来学习吧。 本文实例讲述了C#实现农历日历的方法。分享给大家供大家参考。 具体实现方法如下: //天干 private static 阅读全文
posted @ 2022-03-25 16:45 电子_精灵 阅读(465) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp { /** * ChineseCalendarGB.java * Copyright (c) 1997-2002 by Dr 阅读全文
posted @ 2022-03-25 16:36 电子_精灵 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 读取word文档得使用com组件:Microsoft Word 12.0 object library由于office的本不同,组件的版本也会不同,我电脑上装的office2007所以版本是12.0使用该组件提供的类和方法来读取Word文档首先在项目中添加com引用: 然后可以用Microsoft. 阅读全文
posted @ 2022-03-04 14:25 电子_精灵 阅读(381) 评论(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) 编辑