摘要: create proc sp_MarkAutoKQ as begin declare @dateA datetime,@dateWeek varchar(50) ---创建两个变量,接收当前时间和当天是星期几 set @dateA=getdate() ---获取当前时间 set @dateWeek=datename(weekday,getdate()) ... 阅读全文
posted @ 2016-05-30 10:04 hobe6699 阅读(729) 评论(0) 推荐(0) 编辑
摘要: drop table #tmp1999 drop table #tmp2999 drop table #tmp3999 drop table #tmp4999 drop table #tmp5999 drop table #tmp6999 drop table #tmp7999 drop table #tmp8999 drop table #tmp9999 drop table #tmp1 ... 阅读全文
posted @ 2016-04-22 08:36 hobe6699 阅读(1407) 评论(0) 推荐(0) 编辑
摘要: private void pictureBox1_Click(object sender, EventArgs e) { //产生随机数 Random r = new Random(); //定义一个字符串用于接收产生的随机数字 string str=null; for (int i = 0; i 阅读全文
posted @ 2016-01-31 17:02 hobe6699 阅读(205) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography;namespace _19_MD5加密{ class Pro... 阅读全文
posted @ 2016-01-26 08:54 hobe6699 阅读(181) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;//使用File类需要引用System.IOnamespace _08_Flie类{ class ... 阅读全文
posted @ 2016-01-21 11:28 hobe6699 阅读(235) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;//使用Path类需要引用System.IOnamespace _07_Path类{ class ... 阅读全文
posted @ 2016-01-21 11:07 hobe6699 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 一,哈希表(Hashtable)简述 在.NET Framework中,Hashtable是System.Collections命名空间提供的一个容器,用于处理和表现类似keyvalue的键值对,其中key通常可用来快速查找,同时key是区分大小写;value用于存储对应于key的值。Hashta... 阅读全文
posted @ 2016-01-21 09:53 hobe6699 阅读(106) 评论(0) 推荐(0) 编辑
摘要: ArrayList list = new ArrayList(); //声明一个新集合 Random r = new Random(); //声明一个随便数对象 for (i... 阅读全文
posted @ 2016-01-20 17:22 hobe6699 阅读(736) 评论(0) 推荐(0) 编辑
摘要: System.Collections.ArrayList类是一个特殊的数组。通过添加和删除元素,就可以动态改变数组的长度。一.优点1。支持自动改变大小的功能2。可以灵活的插入元素3。可以灵活的删除元素二.局限性跟一般的数组比起来,速度上差些三.添加元素1.publicvirtualintAdd(ob... 阅读全文
posted @ 2016-01-20 15:26 hobe6699 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 3、字符串1)、字符串的不可变性当你给一个字符串重新赋值之后,老值并没有销毁,而是重新开辟一块空间存储新值。当程序结束后,GC扫描整个内存,如果发现有的空间没有被指向,则立即把它销毁。2)、我们可以讲字符串看做是char类型的一个只读数组。ToCharArray();将字符串转换为char数组new... 阅读全文
posted @ 2016-01-18 14:33 hobe6699 阅读(159) 评论(0) 推荐(0) 编辑