码迷,mamicode.com
首页 >  
搜索关键字:design pattern    ( 12201个结果
LeetCode122:Best Time to Buy and Sell Stock II
题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may co...
分类:其他好文   时间:2014-05-28 00:53:26    阅读次数:338
如何使用Xcode进行高保真原型设计?
转载自:http://www.guimobile.net/xcode-high-fidelity-prototype-design.htmlXcode不仅是开发者用来开发iOS Apps的开发工具,同样也可以被设计师用来创建App的高保真交互原型。在Xcode开发环境里,没有任何限制,设计师可以嵌入...
分类:其他好文   时间:2014-05-26 17:36:06    阅读次数:310
Design Pattern - Observer 观察者设计模式
Spy on enemy. 使用这个模式可以根据某些事件自动更新。 设计思路: 1 设计一个基类,作为需要观察一个时间行为的接口类 2 设计一个观察者类,可以观察所有基类的衍生类, 这里使用set来保存这些需要更新的类。 一个事件相当于一个函数,事件发生(调用函数)同时自动调用需要更新的函数动作。 #pragma once #include #include #inclu...
分类:其他好文   时间:2014-05-26 06:16:49    阅读次数:284
【大话设计模式】——简单工厂模式
简单工厂模式(Simple Factory Pattern)属于创建型模式,又叫做静态工厂方法模式(Static FactoryMethod Pattern),但是不属于23GOF设计模式之一。简单工厂模式是由一个工厂对象决定创建出哪一种产品类的实例。 走别人的的路,不如自己 to do (不如的意思是更)。先敲书上的例子,第一遍也许不懂,第二遍就清晰很多,第三遍就觉得自己能写点东西出来。不要总是觉得自己看不懂,学不好,只有先学了才能更好。没有之前的8个馒头,就没有第9个馒头的饱(好撑啊~~)...
分类:其他好文   时间:2014-05-26 05:51:44    阅读次数:224
zoj 3195 Design the city
DescriptionCerror is the mayor of city HangZhou. As you may know, the traffic system of this city is so terrible, that there are traffic jams everywhe...
分类:其他好文   时间:2014-05-25 11:40:26    阅读次数:393
《Pro Android Graphics》读书笔记之第五节
Android DIP: Device-independent Pixel Graphics Design How Android Supports Device Displays: UI Design and UX  Device Display Concepts: Size, Density, Orientation, DIP  size Type small,normal,large,...
分类:移动开发   时间:2014-05-25 07:28:50    阅读次数:458
设计模式 - 观察者模式(Observer Pattern) 详解
观察者模式(Observer Pattern) 详解 本文地址: http://blog.csdn.net/caroline_wendy/article/details/26583157 版权所有, 禁止转载, 如有转载, 请站内联系. 观察者模式(Observer Pattern): 定义了对象之间的一对多的依赖, 这样一来, 当一个对象改变状态时, 它的所有依赖者都会收到通知并自动更新. 使用方法:...
分类:其他好文   时间:2014-05-25 01:07:22    阅读次数:276
DataUml Design 教程4-代码生成
DataUml Design 生成代码非常灵活,它是基于模板形式生成代码,如果不懂类结构的话写模型就比较困难了。这里我只讲解下如何生成代码,代码模板规则下一节将介绍。         1、查看代码              1)、选中软件右边的代码模板文件,如图4-1 图4-1               2)、选择模型中的一个类,单击鼠标右键选择“查看代码”菜单,即可查看生成的代码。...
分类:其他好文   时间:2014-05-24 22:02:54    阅读次数:281
设计模式 - 观察者模式(Observer Pattern) Java内置 使用方法
观察者模式(Observer Pattern) Java内置 使用方法 本文地址: http://blog.csdn.net/caroline_wendy/article/details/26601659 观察者模式(observer pattern)详解, 参见: http://blog.csdn.net/caroline_wendy/article/details/26583157 Java内置的观察者模式, 是...
分类:编程语言   时间:2014-05-24 20:37:33    阅读次数:388
Android Design 1: Back键和Up键在App导航中的表现
一,概念1,Back键一直存在android系统中1-1任何页面下的返回1-2Floatingwindow1-3ContexualActionbar/highlightselect1-4Keyboard2,Up键是随AndroidDesign出来的。2-1androidDesign定义的parentcontainer2-2app的主界面是不存在Up键的二,情景分析1,App内部1-1沿逐级深入路..
分类:移动开发   时间:2014-05-24 17:06:16    阅读次数:317
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!