//快速排序 function QSort(L, low, high) { var pivot; while(low<high) { pivot = Partition(L, low, high);//将L一分为二 QSort(L, low, pivot - 1); low = pivot + 1; ...
分类:
编程语言 时间:
2016-06-28 23:37:40
阅读次数:
182
#pragma region Includes#include <stdio.h>#include <windows.h>#pragma endregion #pragma region Is64BitOperatingSystem (IsWow64Process) //// FUNCTION: D ...
分类:
系统相关 时间:
2016-06-28 23:23:59
阅读次数:
368
对象的创建: var first=new Object(); var second={ a:"bbb", b:function(){...} } 对象的内容增加: first.name="aaa" first.talk=function(){...} 工厂模式: function createobj ...
分类:
Web程序 时间:
2016-06-28 22:13:23
阅读次数:
190
看了ES6就感觉各种数据结构的遍历方法好多好混乱,就写下来总结下,看看应用场景上有什么区别 Array: ES5: (1)Array.prototype.forEach(function(item,index,array){...}) (2)Array.prototype.map(function( ...
分类:
其他好文 时间:
2016-06-28 22:12:59
阅读次数:
426
原文:http://blog.dream4dev.com/article.asp?id=17 function UnicodeEncode(Str: string; CodePage: integer): WideString;var Len: integer;begin Len := Length ...
question: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 - ...
分类:
其他好文 时间:
2016-06-28 20:33:04
阅读次数:
137
question: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". answer: 交换字符串中的元素 ...
分类:
其他好文 时间:
2016-06-28 20:19:19
阅读次数:
125
一取值post和get取值1)GET/test?name=fred&tel=0926xxx572app.get(‘/test‘,function(req,res){console.log(req.query.name);console.log(req.query.tel);});2)POST<formaction=‘/test‘method=‘post‘><inputtype=‘text‘name=‘name‘value=‘fred‘><inputtype..
分类:
Web程序 时间:
2016-06-28 18:49:43
阅读次数:
139
Windows lets you share code at the binary level using DLLs. After all, that's how Windows apps function - reusing kernel32.dll, user32.dll, etc. But s... ...
分类:
其他好文 时间:
2016-06-28 18:19:02
阅读次数:
220
function( $value ) use ( &$dealer ){ //someting.... } $value 为array_walk传给匿名函数的参数,参数值为array_walk遍历$dealer_id_arr的每一个数组项的值 use( &$dealer ) 传递给use的$deal ...
分类:
Web程序 时间:
2016-06-28 18:13:57
阅读次数:
320