![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#/C++
文章平均质量分 51
sunnybeach
self-development!
展开
-
c#时钟代码
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Simpc原创 2012-10-23 20:26:09 · 1475 阅读 · 0 评论 -
c#文本编辑器
}using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Form原创 2012-10-23 20:38:07 · 1349 阅读 · 0 评论 -
access使用相对路径
今天将access数据库的路径由绝对路径改为相对路径遇到了很大的问题:总是提示找不到数据库文件或当前上下文不存在WebConfigurationManager;即使在Web.config中添加了 也无济于事。后来发现可以用HttpContext.Current.Server.MapPath();转换路径,如:OleDbConnection con = new O原创 2012-12-10 23:48:11 · 2732 阅读 · 0 评论 -
C# md5加密 浅看
参考代码写了个MD5加密函数如下首先使用如下命名空间using System;using System.Security.Cryptography; //函数部分:public static string MD5Encode(string strText) { MD5 md5 = new MD5CryptoServiceProvider(); byte原创 2014-03-16 20:29:37 · 883 阅读 · 0 评论 -
对static的一点理解
对static的一点讲解=============================================== 静态数据成员的使用方法和注意事项如下: 1、静态数据成员在定义或说明时前面加关键字static。 2、静态成员初始化与一般数据成员初始化不同。静态数据成员初始化的格式如下: ::= 这表明: (1) 初始化在类体外进转载 2014-06-01 20:05:47 · 762 阅读 · 1 评论