1.当希望方法返回多个值时,声明out方法很有用。这样使方法可以有选择地返回值。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 求数组最大最小值{ class...
分类:
其他好文 时间:
2014-07-07 14:53:45
阅读次数:
190
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
分类:
其他好文 时间:
2014-07-07 14:48:39
阅读次数:
160
1 public IQueryable LoadPageuserInfos(int pageSize, int pageIndex, out int total, 2 Func wherelambda, Func orderbyLambda, bool isasc) 3 ...
分类:
其他好文 时间:
2014-07-07 14:13:08
阅读次数:
188
源自《Linux 运维之道》丁一明编著 一书的总结Rsync(remote sync)是UNIX平台下一款神奇的数据镜像备份软件。根据数据的变化进行差异备份,从而减少流量,提高工作效率。Rsync使用TCP873端口。在服务器端:[root@localhost /]# mkdir /rsyncFil...
分类:
其他好文 时间:
2014-07-03 11:42:00
阅读次数:
252
DFS 深度优先BFS 广度优先DFS或者BFS都是在联通区域内遍历节点的方法用在二叉树上DFS有preOreder,inOrder,postOrder,BFS就是层次遍历。在二叉树上的节点,只有两个选择,left 和right,即,对于每一个节点,in 有1个, out 有两个,有向图在矩阵的节点...
分类:
其他好文 时间:
2014-07-01 21:32:46
阅读次数:
278
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],...
分类:
其他好文 时间:
2014-07-01 13:01:01
阅读次数:
177
A press release is a great way to create publicity for your cleaning business. Send out press releases to announce a newsworthy event about you, your ...
分类:
其他好文 时间:
2014-06-30 23:22:37
阅读次数:
275
1. 在Bourne shell / Bourne-again shell 和Korn shell中,digit1> & digit2 表示要将描述符digit1 重定向至描述符digit2的同一文件。请说明下面两条命令的区别。./a.out > outfile 2> &1./a.out 2>&1 ...
分类:
其他好文 时间:
2014-06-30 20:44:21
阅读次数:
234
#include
#include
#include
static char out_ip[15] = "52.0.10.188";
static int out_port = 8888;
int main()
{
char sSendBuf[2049], sRecvBuf[2049];
int connfd = 0, iRet = 0, iSend...
分类:
其他好文 时间:
2014-06-30 18:56:37
阅读次数:
247
编译 windows上编译lua源码
cl /MD /O2 /W3 /c /DLUA_BUILD_AS_DLL *.c
del *.o
ren lua.obj lua.o
ren luac.obj luac.o
ren print.obj print.o
link /DLL /IMPLIB:lua5.1.lib /OUT:lua5.1.dll *.obj
link /OUT:lua.ex...
分类:
其他好文 时间:
2014-06-30 18:18:38
阅读次数:
156