上一页 1 ··· 6 7 8 9 10
摘要: 你只是知道了解如何寻找内容就可以。 入门 《C++程序设计原理与实践》 《深入理解计算机系统(原书第2版)].(美)布莱恩特,奥哈拉伦》 《c++ primer》 《C++语言的设计和演化》 彻底搞定C指针 提高 《The C++ Programming Language c11》 《C++编程思想 阅读全文
posted @ 2013-11-01 19:03 scott_h 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 刚装的Ubuntu,发现Broadcom无线网卡没工作,原来手贱,在liveCD 把wireless禁用了, ubuntu所以认为你机器,没有wireless模块,所以就没有安装wireless驱动相关。打开终端输入:sudo apt-get install bcmwl-kernel-sourceb43-fwcutte无线网卡可以用了转自http://blog.csdn.net/zyx6a/article/details/9006435 阅读全文
posted @ 2013-10-27 00:42 scott_h 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 嗯,添加一个按钮和我们自己定义的成员变量 关联。方法1. 在*.rc 或者class 类视图中点击[add variable],就会自动生成DDX_Text(*,*)的内容及其IF方法2. 自己写在XXXDlg.cpp中这样定义DDX_Text(pDX, IDC_USER_NAME, m_UserN... 阅读全文
posted @ 2013-07-29 18:15 scott_h 阅读(904) 评论(0) 推荐(0) 编辑
摘要: http://www.gnu.org/manual/http://www.gnu.org/software/gdb/documentation/http://sourceware.org/gdb/current/onlinedocs/gdb/http://blog.csdn.net/haoel/ar... 阅读全文
posted @ 2013-07-05 13:10 scott_h 阅读(349) 评论(0) 推荐(0) 编辑
摘要: http://www.cplusplus.com/reference/algorithm/for_each/std::move()用于c++11http://www.cplusplus.com/reference/utility/move/c++98// for_each example#include // std::cout#include // std::for_each#include // std::vectorvoid myfunction (int i) { // function: std::cout myvector; myvector... 阅读全文
posted @ 2013-07-04 17:06 scott_h 阅读(393) 评论(0) 推荐(0) 编辑
摘要: template InputIterator find (InputIterator first, InputIterator last, const T& val){ while (first!=last) { if (*first==val) return first; ++first; } return last;}http://www.cplusplus.com/reference/algorithm/find/// find example#include // std::cout#include // std::find#include ... 阅读全文
posted @ 2013-07-04 16:55 scott_h 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 先了解下什么都有什么排序算法https://en.wikipedia.org/wiki/Sorting_algorithm http://zh.wikipedia.org/zh/%E6%8E%92%E5%BA%8F%E7%AE%97%E6%B3%95http://student.zjzk.cn/co... 阅读全文
posted @ 2013-07-03 03:31 scott_h 阅读(1882) 评论(0) 推荐(0) 编辑
摘要: http://www.busy2ools.com/ 阅读全文
posted @ 2013-07-02 22:18 scott_h 阅读(168) 评论(0) 推荐(0) 编辑
摘要: http://www.infoq.com/cn/news/2012/08/32-most-important-algorithms?utm_source=infoq&utm_medium=popular_links_homepagehttp://www.risc.jku.at/people/ckoutsch/stuff/e_algorithms.html奥地利符号计算研究所(Research Institute for Symbolic Computation,简称RISC)的Christoph Koutschan博士在自己的页面上发布了一篇文章,提到他做了一个调查,参与者大多数是计算 阅读全文
posted @ 2013-07-02 21:23 scott_h 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 函数重载指 重载函数,形参(类型)不同,实现的功能一样。泛型算法指2个方面:这些算法可作用于各种不同的容器类型,而这些容器类型又可以容纳多种不同类型的元素。 阅读全文
posted @ 2013-07-02 19:10 scott_h 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 以下是2种表达方式一样。if expression codeendif expression then #推荐这种形式 codeendexpression的值不是false或nil,则code块将被执行。需要注意:1)围绕expressions的圆括号是可选的(而且通常都不用),ruby使用换行符、分号或者关键字then对条件表达式和后续的内容进行分隔 2) 必须以end 作为结束。例子if data #if array exist data << x #append x to dataelse data = [x] #create ... 阅读全文
posted @ 2013-07-01 12:00 scott_h 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 4.6.9 范围 Flip-Flops: ..和.....和... 操作符不是基于方法的,无法重定义。(优先级比较低)x+1 .. x*x #可以认为是x+1 至 x*x 的范围因为操作符的值是一个Range对象, 下面3种表达方式都是一样的1) x..y2)Range.new(x,y)3) Range.new(x,y,true) 表达式 Flip-Flops的值可以是ture/false布尔值..与...的区别:当..filp-flops为true时,它返回true,并检验它的右侧表达式以决定是否将其内部状态状态设置回false对于...filp-flops,则要等到下次求值的时候,才会.. 阅读全文
posted @ 2013-06-30 19:33 scott_h 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Visual C/C++ compiler 中的__cdecl、__stdcall、__fastcall、thiscall 压栈、退栈区别 阅读全文
posted @ 2013-06-30 13:09 scott_h 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: windows 库中的各种string, char, wchar, TCHAR, lpstr, lpwstr, lpcwstr , cstring , BSTR, _bstr_t 等等其实unicode的本质上很多 都是wchar可以跳进去看看 是什么, 有的有指针,有的是数组,tchar.h 一般使用的是这个头文件各种转换可以在MSND上找到http://msdn.microsoft.com/en-us/library/ms235631.aspx下面是连接字符串,的宏, 用##来进行连接define strcat(a,b) a##b 阅读全文
posted @ 2013-06-30 12:50 scott_h 阅读(660) 评论(0) 推荐(0) 编辑
摘要: #ifndef SAFE_ADDREF#define SAFE_ADDREF(p) if (p != NULL) { p->AddRef(); }#endif#ifndef SAFE_RELEASE#define SAFE_RELEASE(p) if (p != NULL) { p->Release 阅读全文
posted @ 2013-06-30 12:32 scott_h 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 虚函数虚函数http://zh.wikipedia.org/zh/%E8%99%9A%E5%87%BD%E6%95%B0_%28%E7%A8%8B%E5%BA%8F%E8%AF%AD%E8%A8%80%29这里面有代码解释,很清晰易懂,BCDEF类继承自(A),BCDEF的构造函数各不相同,若是声明 阅读全文
posted @ 2013-06-30 12:31 scott_h 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: 爬虫开发(一)http://www.cnblogs.com/nuller/archive/2013/03/24/2967067.html网络抓包工具 - Fiddler使用方法http://www.cnblogs.com/developersupport/archive/2013/03/24/fid... 阅读全文
posted @ 2013-06-30 12:12 scott_h 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 4.6 操作符了解优先级很重要位移操作符(0b1011) "10110" 11 > 2 # ==> "101" 11 1000| 二进制数,相同 0为0,相同1为1, 不同为1 # 0b1010 | 0b1100 => 1110~ 二进制数, 1变0, 0 变1 # 0b1010 & 0b1100 => 110^ 异或, 2个操作二进制数对应的位中,仅只有一个为1,才是14.6.6 比较操作符 >、 >=、 a b #若a>b ,则返回+1 或 大于0的值; 若a<b ,则返回0 或 小于0的值; 阅读全文
posted @ 2013-06-28 21:01 scott_h 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 对属性和数组元素的赋值o.m + = 1 ===》o.m = (o.m()+ 1) # 对 o.m()这个方法的结果+1对数组元素的赋值也是通过 方法调用来完成。0.[] = 1 ===>o.[] = o.[] +1 #对o实例对象的[]方法,的结果+1如果一个对象o定义了一个接受2个参数的、名为[]=的方法o.[x] = y ===》 那么 o.[] = (x, y)如果一个对象具有一个接受三个参数的、名为[]=的方法,那么方括号中的值,会被当作索引o.[x,y] = z ===>那么 o.[] = (x, y, z)------------分割线---------------- 阅读全文
posted @ 2013-06-26 22:34 scott_h 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 安装完 ruby ri irb ruby-devel1. 先来个简单的,写个helloworld 给新手们 (terminal中,# 代表root权限,$ 代表用户权限, 前面的就不写了。)# vim hello.rbputs "hello world"检查下语法# ruby -c hello.rb编译 # ruby hello.rb结果:hello world2.好了开始说点有营养的了创建2个文件,如下main.rb 1 #文件名main.rb 2 3 load "Ambiguous.rb" 4 5 newInstance = Ambiguous.ne 阅读全文
posted @ 2013-06-26 14:48 scott_h 阅读(325) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10