码迷,mamicode.com
首页 >  
搜索关键字:simple example    ( 24106个结果
【大话设计模式】——简单工厂模式
简单工厂模式(Simple Factory Pattern)属于创建型模式,又叫做静态工厂方法模式(Static FactoryMethod Pattern),但是不属于23GOF设计模式之一。简单工厂模式是由一个工厂对象决定创建出哪一种产品类的实例。 走别人的的路,不如自己 to do (不如的意思是更)。先敲书上的例子,第一遍也许不懂,第二遍就清晰很多,第三遍就觉得自己能写点东西出来。不要总是觉得自己看不懂,学不好,只有先学了才能更好。没有之前的8个馒头,就没有第9个馒头的饱(好撑啊~~)...
分类:其他好文   时间:2014-05-26 05:51:44    阅读次数:224
leetcode -day21 Longest Substring Without Repeating Characters
?? 1、Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter...
分类:其他好文   时间:2014-05-26 05:03:19    阅读次数:172
CSS经验分享:如何书写可维护的CSS代码01
转自:http://www.cnblogs.com/hxling/archive/2013/02/21/2920520.html一、在样式表开头添加一个注释块,用以描述这个样式表的创建日期、创建者、标记等备注信息。Example Source Code:/*---------------------...
分类:Web程序   时间:2014-05-26 02:14:12    阅读次数:273
我的原创软件(持续更新) My Original Software[Continuously updated]
-好软件的定义就是它的体积不大不小,功能不多不少,一切都是那么的恰到好处。 -Good software is neither too big nor too small,neither too Complex nor too Simple,everything is so right. +点击.....
分类:其他好文   时间:2014-05-26 00:54:15    阅读次数:254
编译boost asio http/server 方法
这段时间学习boost 的asio 编程,想编译asio自带的http/server的程序,无奈在网上根本找不到方法,只能自己摸索学习。 登陆boost asio 的example 目录,(我 boost 安装在/opt目录下) cd /opt/boost_1_55_0/libs/asio/exam...
分类:其他好文   时间:2014-05-26 00:39:54    阅读次数:346
Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.思路:这道...
分类:其他好文   时间:2014-05-26 00:06:39    阅读次数:250
测试控制器
测试不应该是很教条的,相反的测试工作应该达到的状态是能够让我们加快开发速度,并且让我们的工作更加的有趣。Keeping Things Simple(保持事情的简单性) 测试简单的任务是简单的,测试复杂的工程是复杂的,我们这里想要讨论的是如何让事情保持简单和尽可能小,这样的话完全是有利于测试工作...
分类:其他好文   时间:2014-05-25 23:19:08    阅读次数:341
LeetCode: Rotate List [060]
【题目】 Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL. 【题意】 给定一个链表L,和非负数K,要求把链表的后k个节点移到链表前 【思路】 先将指针指向指向倒数第K个节点,然后...
分类:其他好文   时间:2014-05-25 18:20:06    阅读次数:252
android_常用UI控件_01_TextView2
显示图片和文字MainActivity.javapackagecom.example.android_textview_showqqface; importjava.lang.reflect.Field; importandroid.os.Bundle; importandroid.app.Activity; importandroid.graphics.Color; importandroid.graphics.drawable.Drawable; importandroid.text.H..
分类:移动开发   时间:2014-05-24 16:41:39    阅读次数:486
Light0J-1068 - Investigation
An integer is divisible by 3 if the sum of its digits is also divisible by 3. For example, 3702 is divisible by 3 and 12 (3+7+0+2) is also divisible by 3. This property also holds for the integer 9. ...
分类:其他好文   时间:2014-05-24 14:30:47    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!