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