会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sunny,lee
图像处理,机器学习,光学原理,GPU硬件
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
2016年4月17日
code complete part1
摘要: 最近在看code complete,学习了一些东西,作为点滴,记录下来。 关于类: 类的接口抽象应该一致 类的接口要可编程,不要对类的使用者做过多的假设。不要出现类似于:A的输入量一定要大于多少小于多少,一定要在某个函数前call之类的限制,而应该在assert等地方加入这些判断,让代码去做限制,而
阅读全文
posted @ 2016-04-17 21:40 sunny,lee
阅读(212)
评论(0)
推荐(0)
2016年3月29日
pvoid64 pvoid
摘要: 如果需要某一个结构体,既在kernel space用,又在user space用,如 typedef struct { PVOID data; int size; }binary,pbinary; 上面这个binary的结构体,假设需要在Kenel space和user space同时用到,如通过k
阅读全文
posted @ 2016-03-29 23:00 sunny,lee
阅读(1168)
评论(3)
推荐(0)
2015年12月16日
create dll project based on the existing project
摘要: Today, I have to create a dll project(called my.sln), the dllmain.cpp/.h/ is already in another project(called A.sln), I only have to update the inclu...
阅读全文
posted @ 2015-12-16 21:07 sunny,lee
阅读(177)
评论(0)
推荐(0)
类的头文件中包含其他类
摘要: 在写代码的时候,经常会遇到这样的情况:A.hclass A:{ A{}; ~A{}; private: int m_value; B *m_pB;}在这种情况下,需要用到另一个class B,那么怎么把B包含进来呢?两种方法:1. #include "B.h"2. 预先申明 class...
阅读全文
posted @ 2015-12-16 21:04 sunny,lee
阅读(534)
评论(0)
推荐(0)
上一页
1
2
3
4
5
公告