悟生慧

 

2010年8月14日

两个按钮分别是线程的打开和终止

摘要: public partial class Form1 : Form { Thread thread=null; int n = 0;bool severIsRun=false;//用来村示线程是否启动private delegate void myDelegate(string str);//定义委托private void setRich(string str)//委托 { if (this.t... 阅读全文

posted @ 2010-08-14 15:59 悟生慧 阅读(380) 评论(0) 推荐(0)

2010年8月4日

C#组合算法

摘要: static string[] m_Data = { "A", "B", "C", "D", "E" }; static void Main(string[] args) { Dictionary<string, int> dic = new Dictionary<string, int>(); for (int i = 0; i < m_Data.Length; i... 阅读全文

posted @ 2010-08-04 17:10 悟生慧 阅读(292) 评论(0) 推荐(0)

随机产生1-100之间的20个随机数

摘要: private void Random(int[] arrayK){ int i = 0; int a,j; Random random = new Random(); while (i < 20) { arrayK[i]=random(100)+1; i++; }} 阅读全文

posted @ 2010-08-04 09:16 悟生慧 阅读(2723) 评论(0) 推荐(0)

2010年7月30日

创建一个存储过程

摘要: CREATE PROCEDURE uSP_BooksUploadFile@Title varchar(200),@Doc image,@DocType varchar(4)ASINSERT tblBooksUpload(DocTitle,Doc,DocType)VALUES (@Title,@Doc,@DocType)GO 阅读全文

posted @ 2010-07-30 16:13 悟生慧 阅读(487) 评论(0) 推荐(0)

ASP.NET操作Access数据库

摘要: //网上很多都是操作SQLSER的,整理了一下,不是很完善,但不影响使用,呵呵……//privatestringdatapatch=ConfigurationSettings.AppSettings["acessconn"];//数据库地址privatestringdatapatch="db/global.asa";//数据库地址//////取得dataset/////... 阅读全文

posted @ 2010-07-30 16:02 悟生慧 阅读(2530) 评论(0) 推荐(0)

很简单的Java递归算法

摘要: import java.io.*;public class DiGui {public static void main(String args[]) {String s;try {System.out.println("Please intput a Number");BufferedReader br = new BufferedReader(new InputStreamReader(Sys... 阅读全文

posted @ 2010-07-30 14:55 悟生慧 阅读(4414) 评论(0) 推荐(0)

WinForm桌面下雪源码

摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServic... 阅读全文

posted @ 2010-07-30 14:34 悟生慧 阅读(1077) 评论(0) 推荐(0)

2010年7月19日

外连接查询

摘要: (表名1:a 表名2:b) select a.a,a.b,a.c,b.c,b.d,b.f from a left out join b on a.a = b.c 阅读全文

posted @ 2010-07-19 15:47 悟生慧 阅读(187) 评论(0) 推荐(0)

拷贝表

摘要: (拷贝数据,源表名:a 目标表名:b) insert into b(a,b,c)select d,e,f from b; 阅读全文

posted @ 2010-07-19 15:45 悟生慧 阅读(142) 评论(0) 推荐(0)

复制表

摘要: (只复制结构,源表名:a 新表名:b) (Access可用)   法一:select * into b from a where 1<>1   法二:select top 0 * into b from a 阅读全文

posted @ 2010-07-19 15:43 悟生慧 阅读(168) 评论(0) 推荐(0)

导航