第二道广搜的问题虽然思路很清晰,可真要自己把代码敲出来并不是一件容易的事用一维数组模拟一个队列,head和tail分别记录队首和队尾先将迷宫的起点入队,然后向四个方向拓展,如果没有出界或者没有遇到墙壁,那么入队,然后队首出队知道搜到迷宫的出口为止 1 //#define LOCAL 2 #inclu...
分类:
其他好文 时间:
2014-08-11 11:25:33
阅读次数:
239
ATL宏:USES_CONVERSION;W2AA2WCString StringUtil::UTF8_to_UNICODE(const char *utf8_string, int length){int wcsLen = ::MultiByteToWideChar(CP_UTF8, NULL, ...
分类:
编程语言 时间:
2014-08-11 00:17:31
阅读次数:
364
更改时区在使用tzselect方法设置后并不起作用,直接更改配置信息cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime2.安装vnc6版本以上的vnc和原来的名字有所区别,新的版本名字改为tigervnc-server
分类:
系统相关 时间:
2014-08-10 10:30:20
阅读次数:
233
Description
Ouroboros is a mythical snake from ancient Egypt. It has its tail in its mouth and continously devours itself.
The Ouroboros numbers are binary numbers of 2^n bits that have the prop...
分类:
其他好文 时间:
2014-08-09 11:40:57
阅读次数:
315
#include#includeusing namespace std;struct point{ int x, y;};point bufa[8] ={ {-2, 1}, {-1, 2}, {1, 2}, {2, 1}, {2, -1}, {1, -2}, {-1, -2}, {-2, -1}};...
分类:
其他好文 时间:
2014-08-09 11:29:47
阅读次数:
290
var browser = {versions: function () {var u = navigator.userAgent, app = navigator.appVersion;return { //移动终端浏览器版本信息ios: !!u.match(/\(i[^;]+;( U;)? CP...
分类:
移动开发 时间:
2014-08-08 17:21:16
阅读次数:
286
在主窗体中任意位置加上下面的代码即可protected override CreateParams CreateParams{ get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x02000000; ...
函数重载如果同一作用域内的几个函数名字相同但形参列表不同,我们称之为重载函数。例如:void print(const char *cp);void print(const int *beg,const int *end);void pring(const int ia[],size_t size);...
分类:
其他好文 时间:
2014-08-07 00:18:27
阅读次数:
542
通配符多用在文件名上,比如查找find,ls,cp等。正则表达式用在文本过滤工具里,比如grep,awk,sed等。一、通配符*可以和零个或多个任意字符匹配? 与任何单个字符匹配二、正则表达式正则表达式中的特殊字符比较多,以下仅列举一些:. 匹配任何单个字符$ 匹配行结束符^ 匹配一行的开...
分类:
其他好文 时间:
2014-08-06 17:20:11
阅读次数:
251
tail -n 行数 -f 文件夹路径以及 名字,用于查看log 后面可以追加 | grep +名字 用于过滤
ps aux|grep 文件 查看执行情况
例如: tail -n 40 -f /export/logs/nerdlogs/new-nerd/nerdserver/main/monitor_
D.log | grep SendThread...
分类:
系统相关 时间:
2014-08-06 14:50:41
阅读次数:
456