摘要:
C语言的设计模式-接口隔离接口隔离:定义为客户端不应该依赖它不需用的接口,在C语言中我们可以把头文件看成一个模块的接口,根据接口隔离原则也就是说这个头文件中只能包含外部需要的接口,但在实际的项目中往往头文件都不符合接口隔离原则。1:内、外部接口的隔离:头文件中通常包含了模块内部接口(内部类型定义、内... 阅读全文
posted @ 2014-06-20 14:01 Michael83 阅读(225) 评论(0) 推荐(0)
posted @ 2014-06-20 14:01 Michael83 阅读(225) 评论(0) 推荐(0)
posted @ 2014-06-20 14:00 Michael83 阅读(230) 评论(0) 推荐(0)
posted @ 2014-06-20 13:59 Michael83 阅读(242) 评论(0) 推荐(0)
posted @ 2014-06-20 13:56 Michael83 阅读(261) 评论(0) 推荐(0)
posted @ 2014-06-20 13:52 Michael83 阅读(164) 评论(0) 推荐(0)
posted @ 2014-06-20 13:41 Michael83 阅读(489) 评论(0) 推荐(0)
posted @ 2013-02-28 17:57 Michael83 阅读(146) 评论(0) 推荐(0)
posted @ 2013-02-28 17:55 Michael83 阅读(253) 评论(0) 推荐(0)