摘要: 一.简单工厂类 二。工厂方法模式实现 三、简单工厂和工厂方法 简单工厂模式的最大长处在于工厂类中包括了必要的逻辑推断,依据client的选择条件动态实例化相关的类。对于client来说。去除了与详细产品的依赖。 @工厂方法模式(factory method):定义一个用于创建对象的接口,让子类决定实 阅读全文
posted @ 2017-06-10 21:26 cxchanpin 阅读(169) 评论(0) 推荐(0)
摘要: 下载 http://download.csdn.net/detail/benjaminwan/7406089 专用于刷基于AOSP4.1.2的乐蛙和MIUIV5 由于本人制作的第三方ROM,为了通刷,LSK版本号设备名称都定为a850,所以须要专用recovery配合刷机。 此Recovery为合集 阅读全文
posted @ 2017-06-10 20:41 cxchanpin 阅读(286) 评论(0) 推荐(0)
摘要: 原创作品。出自 “深蓝的blog” 博客,欢迎转载,转载时请务必注明出处。否则追究版权法律责任。 深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/47720043 【简单介绍】 个人在oracle路上的成长记录,当中以蓝自喻。分享成 阅读全文
posted @ 2017-06-10 19:06 cxchanpin 阅读(389) 评论(0) 推荐(0)
摘要: 1497: [NOI2006]最大获利 Time Limit: 5 Sec Memory Limit: 64 MB Submit: 3437 Solved: 1674 [Submit][Status][Discuss] Description 新的技术正冲击着手机通讯市场。对于各大运营商来说,这既是 阅读全文
posted @ 2017-06-10 17:48 cxchanpin 阅读(155) 评论(0) 推荐(0)
摘要: //有向图的拓扑排序 //杨鑫 #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_NAME 3 #define MAX_VERTEX_NUM 20 typedef int InfoType; //存放网的权值 阅读全文
posted @ 2017-06-10 16:35 cxchanpin 阅读(536) 评论(0) 推荐(0)
摘要: CRM2013的一个新的feature叫做业务规则,一些页面的简单的显示隐藏的控制、字段是否必填、有条件的锁定字段、错误提示等等,曾经都是须要些脚本代码实现如今仅仅需通过业务规则做一些简单的配置就能够达到相同的效果。 进入窗口设计页面,点击上方的业务业务规则,右側下方点新建业务规则就可以。 设置条件 阅读全文
posted @ 2017-06-10 15:55 cxchanpin 阅读(226) 评论(0) 推荐(0)
摘要: autoLyout中动态获得cell的高度和autoLyout小总结 一、在autoLyout中通过动态的方式来获取cell 的方式呢? 1. 在布局时候要有对于cell中contentView的bottom。top都有一定的约束。通过Storyboard中才有了计算第一步. 2. 在Storybo 阅读全文
posted @ 2017-06-10 15:55 cxchanpin 阅读(236) 评论(0) 推荐(0)
摘要: Spring的控制反转(IOC)和依赖注入(DI)具体解释 首先介绍下(IOC)控制反转: 所谓控制反转就是应用本身不负责依赖对象的创建及维护,依赖对象的创建及维护是由外部容器负责的。这样控制器就有应用转移到了外部容器。控制权的转移就是反转 演示样例代码例如以下: public class Pers 阅读全文
posted @ 2017-06-10 14:52 cxchanpin 阅读(282) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-06-10 13:49 cxchanpin 阅读(163) 评论(0) 推荐(0)
摘要: 简单递推.... D. Flowers time limit per test 1.5 seconds memory limit per test 256 megabytes input standard input output standard output We saw the little 阅读全文
posted @ 2017-06-10 12:21 cxchanpin 阅读(208) 评论(0) 推荐(0)
摘要: 程序很easy。好长时间没有搞定。郁闷。。。。。。。。。。。。在论坛咨询,最终找到答案。 描写叙述: 一个Activity:MainActivity。内部是一个Fragment:FragmentA。FragmentA里面有TextView。 问题:不管怎样也得不到FragmentA内部的TextVi 阅读全文
posted @ 2017-06-10 10:44 cxchanpin 阅读(8062) 评论(0) 推荐(0)
摘要: B. Fedya and Maths time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Fedya studies in a gym 阅读全文
posted @ 2017-06-10 10:08 cxchanpin 阅读(259) 评论(0) 推荐(0)
摘要: 參考 file:///poi-3.10-FINAL/docs/spreadsheet/how-to.html#sxssf text2xlsx.groovy 代码例如以下 package xlsx; import javax.swing.JFileChooser import javax.swing. 阅读全文
posted @ 2017-06-10 08:42 cxchanpin 阅读(536) 评论(0) 推荐(0)
摘要: 我非常奇怪为什么要把它归类到回溯上,明明就是简单排序,查找就OK了。wa了两次,我还非常不解的怀疑了为什么会 wa,原来是我居然把要找的数字也排序了,当时仅仅是想着能快一点查找。所以就给他排序了,没考虑到要按给的顺序输 出答案,这次真是二了,。,看别人题解实用打表做的,那个应该是正确解法。我的耗时9 阅读全文
posted @ 2017-06-10 08:02 cxchanpin 阅读(198) 评论(0) 推荐(0)