public void RandSort(int[] _num) { Random rd = new
Random(); int temp = 0, tempNum = 0; for (int i = 0; i < _...
分类:
其他好文 时间:
2014-05-08 18:55:19
阅读次数:
257
tnd,装个mariadb这么费劲,我是喜欢看着编译刷刷刷的跑的,所以这次也不例外,但是会出种种问题。sudo apt-get install
libwrap0-devcmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/mariadb
-DWITH_LIBW...
分类:
数据库 时间:
2014-05-08 14:43:39
阅读次数:
378
HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create(path+filename); //创建一个请求(获得需要的文件信息)
HttpWebResponse myRes = (HttpWebResponse)myReq.GetRe...
分类:
Web程序 时间:
2014-05-07 17:00:11
阅读次数:
270
static void shellsort(int a[], int n) {
for (int gap = n / 2; gap >= 1; gap /= 2) {
for (int i = gap; i < n; i++) {
if (a[i] < a[i - gap]) {
int temp = a[i];
int k = i - gap;
w...
分类:
其他好文 时间:
2014-05-07 16:31:06
阅读次数:
272
public class Sort {
static void insertSort(int a[], int n) {
for (int i = 1; i < n; i++) {
if (a[i] = 0 && a[k] > temp) {
...
分类:
其他好文 时间:
2014-05-07 16:15:39
阅读次数:
225
基于rabbitmq消息队列中topic消息交换模式,弥补了direct exchange和fanout exchange的不足,增加了其灵活性。...
分类:
其他好文 时间:
2014-05-07 16:03:22
阅读次数:
494
std::string GetFilePath() { char
exepath[MAX_PATH];std::string strdir,tmpdir;memset(exepath,0,MAX_PATH);
GetModuleFileName(NULL,exepath,MAX_PATH); tmp...
分类:
其他好文 时间:
2014-05-07 14:59:14
阅读次数:
240
做个记录,写个示例using System;class Rubbish{ public
void Say() { Console.Write("Hello"); }}static class RubbishExtensions{ public
static...
分类:
其他好文 时间:
2014-05-07 14:57:23
阅读次数:
279
DescriptionYou are to write a program that has
to decide whether a given line segment intersects a given rectangle.An
example:line: start point: (4,9)...
分类:
其他好文 时间:
2014-05-07 13:55:45
阅读次数:
387
Description
Given a map of islands and bridges that connect these islands, a Hamilton path, as we all know, is a path along the bridges such that it visits each island exactly once. On our map, there...
分类:
其他好文 时间:
2014-05-07 13:04:35
阅读次数:
402