摘要:
linux 的文件结构linux 下的bin 目录,包含了常用的命令应用程序/bin: bin为binary的简写主要放置一些系统的必备执行档例如:cat、cp、dmesg、gzip、kill、ls、mkdir、more、mount、rm、su、tar, etc。/usr/bin:主要放置一些应用软体工具的必备执行档例如c++、g++、gcc、chdrv、diff、dig、du、eject、elm、free、gnome*、 gzip、htpasswd、kfm、ktop、last、less、locale、m4、make、man、mcopy、ncftp、 newaliases、nslookup p 阅读全文
posted @ 2013-07-30 14:58
iDragon
阅读(518)
评论(0)
推荐(0)
摘要:
Function object is very userful to use member function or non-member function as callback mechanism, Same as event or delegate in C#.For pointer to object 1 template 2 class MemFunctionObject : public binary_function 3 { 4 Return (Type::*pMemFunction)(Argument); 5 public: 6 explicit MemFuncti... 阅读全文
posted @ 2013-07-30 10:43
iDragon
阅读(278)
评论(0)
推荐(0)
摘要:
Layering & Contract Philosophy With additional indirectionPrototypeThe example code is as following: 1 class CObject 2 { 3 public: 4 virtual CObject* clone() const = 0; 5 virtual void BasicOperation() = 0; 6 } 7 //clone is a virtual method, its return type can be differ... 阅读全文
posted @ 2013-07-30 09:17
iDragon
阅读(198)
评论(0)
推荐(0)
摘要:
Layering & Contract Philosophy With additional indirectionFactory MethodThe example code is as following: 1 class CProduct //interface declaration 2 class CConcreteProductOne: public CProduct; 3 class CConcreteProductTwo: public CProduct; 4 5 6 class CCreator 7 { 8 public: virtual CProduct* F... 阅读全文
posted @ 2013-07-30 08:58
iDragon
阅读(248)
评论(0)
推荐(0)

浙公网安备 33010602011771号