class QuickSort { public void Sort(int[] data, int start, int end) { if (start >= end) return; if (start + 1 == end) { if (data[start] > data[end]) Swap(dat
// a demo stringstring xml = "<Root><Eles><Ele>abc</Ele><Ele>123</Ele></Eles></Root>";System.Xml.XmlDocument doc = new System.Xml.XmlDocument();doc.LoadXml(xml);System.IO.StringWriter sw = new
Purpose: Parse MSI installer, to get information such as product name, product code, properties etc.MSI is a standard windows install techonoly, so there are APIs for developers to access. But they are c/c++ methods, instead of C#. After google, i
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading;namespace Test{ class TestThread { private static void ThreadFuncOne() { for (int i = 0; i < 150; i++)
#include<stdio.h>#include<stdlib.h>#include<string.h>#define QUEUELEN 15typedef struct{ char name[10]; int age;}DATA;typedef struct{ DATA data[QUEUELEN]; int head; int tail;}SQType;SQType *SQTypeInit(){ SQType *q;
摘要:本文說明了如何利用Microsoft Web Browser(Web瀏覽器)控制項和Microsoft Document Object Model (DOM)(文件物件模型),用編程的方式來訪問Web中的每一個元素。 要訪問Web頁面的元素,首先必須引用Web Browser控制項,以便應用其屬性、對象、方法和事件。通過調用Navigate方法,就可以用Web