Chinaunix首页 | 论坛 | 博客
  • 博客访问: 30475
  • 博文数量: 19
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 237
  • 用 户 组: 普通用户
  • 注册时间: 2013-06-08 23:24
文章分类

全部博文(19)

文章存档

2014年(16)

2013年(3)

我的朋友

发布时间:2014-08-08 09:13:33

进程:    1、一个挂起的进程包含两个部分:        1)核心映像——即进程的地址空间(可执行程序,程序的数据及堆栈)        2)进程表项——操作系统管理的进程表中的一项(与进程相关的寄存器,程序计数器,指针以及其.........【阅读全文】

阅读(864) | 评论(0) | 转发(0)

发布时间:2014-08-08 09:13:05

Key Idea 1:There is one metric(公尺)  for readability  called The Fundamental Theorem  of Readability.Code shoulde be written to minimize the time it would take for someone else to understand it.(代码应该尽可能写的容易理解)标准:你可以将代码给别人看,并估算别人理解你的代码所.........【阅读全文】

阅读(440) | 评论(0) | 转发(0)

发布时间:2013-07-05 14:06:14

注释:1.注释应该简洁:// CategoryType -> (score, weight)typedef hash_map scoreMap;2. 避免使用含糊的代词// Insert the data into the cache, but check if it's too big firstit过于含糊,应该直指data// Insert the data into the cache, but check if data too big first3.........【阅读全文】

阅读(499) | 评论(0) | 转发(0)

发布时间:2013-07-05 13:50:12

字符指针与字符数组:char * p = "harry";char s[] = {H,a,r,r,y};两者区别在于 p 是指针变量,可以被赋值为其他值,而s是常量,始终指向初始时候的值。继承相关:只要在派生类方法中调用基类同名方法,就必须将基类方法的全名写出来。多态:1.编译会在运行时确定特定调用的隐式参数类型。2.声明虚函数的才能表现.........【阅读全文】

阅读(382) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册