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

全部博文(19)

文章存档

2014年(16)

2013年(3)

我的朋友

发布时间: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.声明虚函数的才能表现.........【阅读全文】

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

登录 注册