摘要:
1, 快速排序:使用分冶思想,不断以某一元素为边界,分割成大小不同的区域。对于大多数数据集,这是最快的算法,除非分割成的区域每次都只有1个。算法复杂度:O(nLogn) public static void QuickSort(int[] ar, int begin, int end)... 阅读全文
摘要:
1,工厂方法:使用一个工厂的方法来创建产品。1 package WHP;2 //产品依赖于抽象3 public interface IRunable {4 public void Run();5 }1 package WHP;2 //具体实现3 public class Car implem... 阅读全文
摘要:
1,创建快捷方式:1, download:http://optimumx.com/download/Shortcut.ziporhttp://files.cnblogs.com/netact/Shortcut.zip解压文件到你的目录 (for example). Now, suppose you want to create a shortcut for a file called scrum.pdf (also on desktop):1. open CMD and go to desktop folder2. run:Shortcut.exe /f:"%USERPROFILE% 阅读全文
摘要:
get all ODBC drivers 驱动:using System;using System.Collections;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Text;using System.Text.RegularExpressions;using System.Threading;namespace CSConsoleTest2{ public static class Program { static void ... 阅读全文
摘要:
http://support.asna.com/kb/documentation/Help_Files/AVR40/AVR/Using_Winhlp32.htm如何打开.hlp文件指定的topicwinhlp32.exe -p -N 3 C:\Dev\WWSPC\HP.WWSpc\Source\HP.WWSpc\Client\bin\Debug\Docs\SPCEXPLORER.HLPuseHELPDECO.exe to decompile .hlp to .hpjthen open .hpj from Help & Manual get the href for topic. 阅读全文
摘要:
1 public unsafe class MandelbrotSet 2 { 3 public Bitmap bmp = null; 4 public BitmapData bd = null; 5 public int[] data = null; 6 public Point[] pts = null; 7 8 public int width; //pexils 9 public int height;10 public double scall = 3... 阅读全文
摘要:
//To get that info you must use theASSOCIATORS OFWQL sentence to create a link between theWin32_DeviceMemoryAddress->Win32_PnPEntity->Win32_IRQResourceclasses. 1 static void Main(string[] args) 2 { 3 foreach (ManagementObject Memory in new ManagementObjectSearcher( 4 ... 阅读全文
摘要:
1, 安装sql server compact edition 4 sp1 Runtime2, 安装sql server ce tool box for to Management or create local DB.http://sqlcetoolbox.codeplex.com/3, 以往的 ... 阅读全文
摘要:
//C++:// get the length of file. //char * holder;int length = 0;int hav = 0;int not = 0;int counter = 0;int sumit = 0;//create the ifstream('examplefile') to load the data from the .res 'fname' location:ifstream resexamplefile;resexamplefile.open (fname, ios::binary);//.res file path 阅读全文
摘要:
In this article,I will introduce how to research strings in the vs2010.newLine:'\x000D\n' or '\n'\{\x000D\n\t\t\t\[[a-z,A-Z]+\([a-z,A-Z,.]+\)\]ExpressionSyntaxDescriptionExampleAny character.Matches any single character except a line break.a.o matches "aro" in "around& 阅读全文
摘要:
DescriptionThis group exists to support the use of the .NET Power Threading Library produced by Jeffrey Richter/Wintellect.The Library, documentation, sample code, and license agreement can be downloaded from http://Wintellect.com/PowerThreading.aspx.More information about the library's classes 阅读全文
摘要:
一,数组:(a) 一维数组定义,初始化: int a[10]={6,4,3,2,6,7,3,4,6,2,3,4}; char c[]={'a','b','c','d'}; //对全部元素赋值时可以省略数组大小。 int a[10]={1,2,3}; //可以只对数组部分元素初始化。访问数组元素方式:a[9]; //注意数组越界。(b) 二维数组定义,及初始化: int a[2][3]={{1,2,3},{4,5,6}};//分行初始化 int a[2][3]={1,2,3,4,5,6};//... 阅读全文
摘要:
正则表达式相关类:Regex结果相关类: MatchCollection例子:static void Main(string[] args){ const string myText = @"This comprehensive compendium provides a broad and through investigation of all aspect of programming with ASP.NET. Entirely revised and updated for the fourth release of .NET, this book will give yo 阅读全文
摘要:
1, 循环执行,sql server 操作。DECLARE @i INT=0 WHILE @i<400 BEGIN INSERT INTO dt2 ( [name] ,[value] ,[value2]) VALUES ( 'name'+CAST( @i AS NVARCHAR(50)), ABS(CHECKSUM(NewId())) % 15, ABS(CHECKSUM(NewId())) % 10 ) SET @i=@i+1 WAITFOR DELAY '00:00:00.001'; END go 阅读全文