码迷,mamicode.com
首页 >  
搜索关键字:tail cp seek    ( 13885个结果
POJ 3984 迷宫问题
第二道广搜的问题虽然思路很清晰,可真要自己把代码敲出来并不是一件容易的事用一维数组模拟一个队列,head和tail分别记录队首和队尾先将迷宫的起点入队,然后向四个方向拓展,如果没有出界或者没有遇到墙壁,那么入队,然后队首出队知道搜到迷宫的出口为止 1 //#define LOCAL 2 #inclu...
分类:其他好文   时间:2014-08-11 11:25:33    阅读次数:239
Visual C++ unicode and utf8 转换
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
Linux 6 常用工具设置方法
更改时区在使用tzselect方法设置后并不起作用,直接更改配置信息cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime2.安装vnc6版本以上的vnc和原来的名字有所区别,新的版本名字改为tigervnc-server
分类:系统相关   时间:2014-08-10 10:30:20    阅读次数:233
POJ - 1392 Ouroboros Snake (欧拉回路的应用)
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
poj 1915 双向 BFS 利用数组 a[x][y] = a[cp.x][cp.y] + 1; b[x][y] = b[cp.x][cp.y] + 1;保留步数
#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
JS判断请求来自Android手机还是iPhone手机
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
c# winform窗体闪烁解决方法
在主窗体中任意位置加上下面的代码即可protected override CreateParams CreateParams{ get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x02000000; ...
分类:Windows程序   时间:2014-08-07 12:22:00    阅读次数:270
函数重载
函数重载如果同一作用域内的几个函数名字相同但形参列表不同,我们称之为重载函数。例如: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
awk与正则表达式
通配符多用在文件名上,比如查找find,ls,cp等。正则表达式用在文本过滤工具里,比如grep,awk,sed等。一、通配符*可以和零个或多个任意字符匹配? 与任何单个字符匹配二、正则表达式正则表达式中的特殊字符比较多,以下仅列举一些:. 匹配任何单个字符$ 匹配行结束符^ 匹配一行的开...
分类:其他好文   时间:2014-08-06 17:20:11    阅读次数:251
Linux命令 tail 加过滤功能
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!