摘要: 主要包括阅读(书、一论文)、代码两部分工作 阅读书时要做好笔记,论文也是同样。通过兼职的经验来看,精读好处更大,也更容易有快感。 代码上,这周要把代码完全放入Roc及bullet拿进来,包括线束的增加、包围体及搞清楚力矩如何施加等。 游泳两次,安排在周一晚上及周三晚上,及XC一次,其它再安排一次与同学的小聚会。 保证每天的确有8+的工作时间,以及完成自己承诺的300行代码和一篇论文。 阅读全文
posted @ 2010-12-27 00:54 justin_s 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 友元类 : 友元类的所有成员函数都是另一个类的友元函数,都可以访问另一个类中的隐藏信息(包括私有成员和保护成员)。 当希望一个类可以存取另一个类的私有成员时,可以将该类声明为另一类的友元类。定义友元类的语句格式如下: friend class 类名; 其中:friend和class是关键字,类名必须是程序中的一个已定义过的类。 例如,以下语句说明类B是类A的友元类: class A { … pu... 阅读全文
posted @ 2010-12-26 14:06 justin_s 阅读(275) 评论(0) 推荐(1) 编辑
摘要: zz from www.cplusplus.com/doc/tutorial/namespaces/ Namespaces Published by Juan SoulieLast update on Feb 2, 2007 at 2:01pm UTC Namespaces allow to group entities like classes, objects and functions u... 阅读全文
posted @ 2010-12-26 11:12 justin_s 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 因为代码量大,有些东西前面写后面忘,需要一些注释,而不规范、无结构的注释起不了大作用,因此选用鼎鼎大名的doxygen. 1.setup 直接选用xp 的 binary。因为暂时还没有其它需要,所以没有下载若干辅助软件。 2.documenting the code 注释被分为三类: brief description and detailed description for code item... 阅读全文
posted @ 2010-12-25 22:38 justin_s 阅读(361) 评论(0) 推荐(0) 编辑
摘要: System(Facade)::initializeSystem set up Controller & Model Controller initilization intilize system env start init_module [] register init module create module state init_state.reset register st... 阅读全文
posted @ 2010-12-20 10:49 justin_s 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 好吧,又见到这个模式了。。在项目中,这个模式被用来构建整个system,作为对外交互的接口,这是facade的擅长的。A facade is an object that provides a simplified interface to a larger body of code, such as a class library. A facade can: make a software library easier to use, understand and test, since the facade has convenient methods for common tasks; 阅读全文
posted @ 2010-12-13 22:32 justin_s 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 可以看到有: //shared/dynamic link libraries boost_thread_mt-1_42.lib boost_thread_mt-1_42.dll boost_thread-mt-gd-1_42.lib boost_thread-mt-gd-1_42.dll //static libs… boost_thread_mt-1_42.lib boost_thread... 阅读全文
posted @ 2010-12-13 13:50 justin_s 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 这次遇到它不是在项目中,但项目也有的。。今天实际上发现,在项目中23种设计模式的基本用法都作了示例。。原型也都规定好了。。 策略模式是在读ThoughtWork文集里看到的,还提及了Null Object模式,两个都大致说下。 The strategy pattern is intended to provide a means to define a family of algorithms, ... 阅读全文
posted @ 2010-12-13 03:27 justin_s 阅读(268) 评论(0) 推荐(0) 编辑
摘要: The shared_ptr class template stores a pointer to a dynamically allocated object, typically with a C++ new-expression. The object pointed to is guaranteed to be deleted when the last shared_ptr pointi... 阅读全文
posted @ 2010-12-12 19:13 justin_s 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 实验室这个平台中设计模型数也数不完。。今天遇到了mediator模型。原理: wiki上的C#代码示例:看上去很麻烦,但我们只要从其defination入手:With the mediator pattern communication between objects is encapsulated with a mediator object. Objects no longer communicate directly with each other, but instead communicate through the mediator. This reduces the depend 阅读全文
posted @ 2010-12-12 12:46 justin_s 阅读(1677) 评论(2) 推荐(0) 编辑