theEagles

I am sailing, to be with you, to be free.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

02 2012 档案

摘要:1) What to do: 加载资源图标到CImageList: 2) How to do: CBitmap bmp;bmp.LoadBitmap(IDB_GRAPH16x16);UINT nFlags = ILC_MASK;nFlags |= (theApp.m_bHiColorIcons) ? ILC_COLOR24 : ILC_COLOR4;m_ImageList.DeleteImag... 阅读全文

posted @ 2012-02-29 12:42 theEagles 阅读(1255) 评论(0) 推荐(0)

摘要:Mutable 关键词的作用是:可以在常函数中被修改其值。Mutable适用的场合极少,因此当你觉得你需要使用该关键词时,请再三思考!下面列出几种Mutable适用的场合:1. You have a constant object, but for debugging purposes want to track how often a constant method is called on it. Logically you're not changing the object. Note that if you're making decisions in your pr 阅读全文

posted @ 2012-02-21 01:17 theEagles 阅读(1057) 评论(0) 推荐(1)

摘要:普遍的情况~ 阅读全文

posted @ 2012-02-20 23:43 theEagles 阅读(233) 评论(0) 推荐(0)

摘要:如题... 阅读全文

posted @ 2012-02-20 23:40 theEagles 阅读(160) 评论(0) 推荐(0)

摘要:如题... 阅读全文

posted @ 2012-02-20 23:40 theEagles 阅读(136) 评论(0) 推荐(0)

摘要://模板类Comparetemplate<class T1, class T2>struct Compare{ bool eq(T1 a, T2 b) { return ParamTraits<T1,T2>::Equal(a,b); }};//全特化template<>struct Compare<int, int>{ bool eq(int a, int b);};//偏特化template<class T>struct Compare<int, T>{ bool eq(int,T);};//模板特化template&l 阅读全文

posted @ 2012-02-11 19:41 theEagles 阅读(245) 评论(0) 推荐(0)