2015年4月25日
摘要: Factory模式具有两大重要的功能:(1)、定义创建对象的接口,封装了对象的创建;(2)、使具体化类工作延迟到了子类中。//Product.h#ifndef _PRODUCT_H_#define _PRODUCT_H_class Product{public: virtual ~Prod... 阅读全文
posted @ 2015-04-25 18:55 Tsl_Dream 阅读(407) 评论(0) 推荐(0)
摘要: /** 对通讯录进行插入、删除、排序、查找、单个显示功能*/#include #include #include #include int n;typedef struct _Address_List{ char name[30]; //名字 char work[3... 阅读全文
posted @ 2015-04-25 15:12 Tsl_Dream 阅读(5726) 评论(0) 推荐(0)