摘要: 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) 编辑