Rookie2

1st Edition

导航

2014年4月25日 #

_countof

摘要: #define _countof(_Array) (sizeof(_Array) / sizeof(_Array[0])) 阅读全文

posted @ 2014-04-25 14:31 Rookie2 阅读(161) 评论(0) 推荐(0) 编辑

2014年4月9日 #

自启动在UAC开启状态下解决方案

摘要: http://msdn.microsoft.com/en-us/library/bb325654.aspx 阅读全文

posted @ 2014-04-09 16:23 Rookie2 阅读(315) 评论(0) 推荐(0) 编辑

windows常见启动项启动顺序

摘要: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnceHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunHKEY_CURRENT_USER\So 阅读全文

posted @ 2014-04-09 16:00 Rookie2 阅读(575) 评论(0) 推荐(0) 编辑

2014年1月27日 #

ssh登录的一个小问题

摘要: IT IS NOT POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY someone could be eavesdropping on your right now (man-in-the-middle attack !) it is also possible that the RSA host key has been changed解决方法:进入 ~/.ssh目录,编辑known_host文件,删除其中包括你想连接的主机的那一行,存盘再连接.ok. 阅读全文

posted @ 2014-01-27 17:14 Rookie2 阅读(131) 评论(0) 推荐(0) 编辑

2014年1月24日 #

centos5.5 环境变量设置

摘要: $ emacs /etc/profile未尾加:export PATH=/opt/Qt/bin:$PATH保存,重启或是$ source /etc/profile生效centos下安装qt时出现/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found执行ls -l /usr/lib/libstdc++.so.6发现/usr/lib/libstdc++.so.6 -> /usr/lib/libstdc++.so.6.0.8,其实这里需要使用libstdc++.so.6.0.10从网上下载这个文件,然后rm -rf /usr 阅读全文

posted @ 2014-01-24 20:35 Rookie2 阅读(289) 评论(0) 推荐(0) 编辑

2013年5月28日 #

产生指定范围内随机数的公式

摘要: 常用公式如下:[a, b) [rand() % (b - a) ] + a;[a, b] [rand() % (b - a + 1)] + a;(a, b] [rand() % (b-a) ] + a + 1;(0, 1) rand() / double(RAND_MAX); // 小数产生随机数C语言版srand(time(NULL));int n = rand();Qt版qsrand(time(NULL));int n = qrand(); 阅读全文

posted @ 2013-05-28 15:39 Rookie2 阅读(939) 评论(0) 推荐(0) 编辑

2013年5月25日 #

解决方案 VxWorks头疼错误: undefined reference to proxyArpDefaultOn 或 undefined reference to proxyArpDefaultOn

摘要: 使用厂商提供的BSP编译VxWorks时,出现如下错误:...undefined reference to proxyArpDefaultOn 或 undefined reference to proxyArpDefaultOn...整了半天没整明白, 后来看到这篇文章, 瞬间被秒杀. 技术经验交流是个特别重要的事.以下内容转至: http://blog.csdn.net/dijkstar/article/details/7704201①Tornado 2.2.1编译时proxyArpDefaultOn、proxyArpDefaultOff 未定义而失败的解决:首先这是安装了CD4(PLATF 阅读全文

posted @ 2013-05-25 20:55 Rookie2 阅读(789) 评论(0) 推荐(0) 编辑

2013年5月24日 #

排序

摘要: * 1. 冒泡排序 - 从数列一端开始,两两比较,轻的往上冒。 - 平均O(n2),最好O(n),最坏O(n2) - 稳定* 2. 插入排序 - 将一个无序子数列,逐个插入到有序数列中。 - 平均O(n2),最差O(n2),最好O(n) - 稳定 - 越有序,速度越快* 3. 归并排序 - 把待排序列不断递归拆分成两个子序列,直到两个子序列都为有序序列为止,再将两两有序序列合并成一个有序序列。 - O(nlogn) - 稳定 - 额外空间,和原序列同样大小的序列* 4. 堆排序 - 二叉树,父节点大于(或小于)子节点。 - 最坏O(nlogn),平均接近最坏 - 不稳定* 5.选择排序 - 第 阅读全文

posted @ 2013-05-24 21:27 Rookie2 阅读(231) 评论(0) 推荐(0) 编辑

ASCII码表

摘要: ------------------------------------------------------------------ 0 1 2 3 4 5 6 7 8 9 A B C D E F0 NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI1 DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US2 SP ! " # $ % & ' ( ) * + , - . /3 0 1 2 3 4 5 6 7 8 9 : ; < = > 阅读全文

posted @ 2013-05-24 20:18 Rookie2 阅读(154) 评论(0) 推荐(0) 编辑

2013年3月13日 #

Effective C++总结

摘要: Effective C++ 3rd 总结Effective C++ 3rd 总结如果你还没有读过Effective C++,请绕行。如果你读过,可以借鉴下。Table of Contents1 1. View C++ as a federation of languages 2 2. Prefer consts, enums and inlines to #defines 3 3. Use const whatever possible 4 4. Make sure that objects are initialized before they are used 5 5. Know what 阅读全文

posted @ 2013-03-13 15:51 Rookie2 阅读(2427) 评论(1) 推荐(0) 编辑