摘要: 自动处理头文件的依赖关系all:test34test34:test34.o test33.o test31.o gcc$~ -o $@ test34.o:test34.c test29.h test30.h test32.h test33.o:test33.c test32.h test29.h test31.o:test31.c test30.h test29.hclean: -rm main *.o.PHONY:clean生成目标文件和源文件的依赖关系gcc -M test34.cyuezhenhua@ubuntu:/opt/sdk/tc/makefile$ gcc -M tes... 阅读全文
posted @ 2012-11-09 00:17 retacn_yue 阅读(126) 评论(0) 推荐(0) 编辑
摘要: chain of responsibility 职责链设计模式是用一系列的classes处理一个请求,来一个请求,a先处理,如果没有处理,则b 处理,如果没有处理,则由c处理,这样传递一个请求示例代码如下:方式一:=============/*** 多个请求** @time 下午11:55:14* @author retacn yue* @Email zhenhuayue@sina.com*/public interface Handler {// 方式一// public void hanlderHelp();// public void hanlderPrint();// public v 阅读全文
posted @ 2012-11-09 00:15 retacn_yue 阅读(134) 评论(0) 推荐(0) 编辑