【题目】原文:1.3 Design an algorithm and write code
to remove the duplicate characters in a string without using any additional
buffer. NOTE: One or two add...
分类:
其他好文 时间:
2014-06-02 21:32:04
阅读次数:
284
前一阵子在项目中添加了IrisSkin2皮肤控件,今天用VS打开悲剧了。提示"类型Universe无法解析程序集:System.Design,Version=2.0.0.0,Culture=neutral,PublickeyToken=b03f5f7f11d50a3a"。这是因为vs2010新建工程...
分类:
其他好文 时间:
2014-06-02 16:32:37
阅读次数:
241
Te Regular Expression literal also creates new
objects in ECMA Script 5. And one last note that calling RegExp() without new(as
a function, not as a c...
分类:
编程语言 时间:
2014-06-02 15:50:52
阅读次数:
280
Best Time to Buy and Sell Stock IISay you have
an array for which theithelement is the price of a given stock on dayi.Design an
algorithm to find the ...
分类:
其他好文 时间:
2014-06-02 15:01:53
阅读次数:
305
The only syntax difference between JSON and the
object literal is that property names need to be wrapped in quotes to be valid
JSON. In object literal...
分类:
编程语言 时间:
2014-06-02 09:31:41
阅读次数:
394
原文地址:http://ddmvc4.codeplex.com/原文名称:Design and
Develop a website using ASP.NET MVC 4, EF, Knockoutjs and Bootstrap另一种 MVC 应用程序:
简介站点总是快速成长,一旦开始成长,站点就...
分类:
Web程序 时间:
2014-06-02 00:55:07
阅读次数:
372
原文地址:http://ddmvc4.codeplex.com/原文名称:Design and
Develop a website using ASP.NET MVC 4, EF, Knockoutjs and BootstrapPart 1: 创建
Web Application (Knockou...
分类:
Web程序 时间:
2014-06-02 00:35:52
阅读次数:
271
单一模式的几个注意点:
一) 设计单一模式,首先需要把构造函数给私有化了,不让外界访问,那么外界只能通过提供的函数获取一个新的类。
二) C++的单一模式,记得要在类外初始化一个类,否则或内存出错的。
三) 这个唯一的类必须是要静态的
程序:
#ifndef _SINGLETON_H
#define _SINGLETON_H
#include
#include
using...
分类:
其他好文 时间:
2014-06-01 18:09:44
阅读次数:
371
Android UI Layouts: Graphics Design Using the ViewGroup Class Android ViewGroup Superclass: A Foundation for Layouts The ViewGroup LayoutParams Class: Layout Parameters Deprecated Layouts: AbsoluteL...
分类:
移动开发 时间:
2014-06-01 14:50:42
阅读次数:
397
本程序实现一个责任链模式查询人名的资料。
开始都是查询第一个人,问其是否有某人的资料,如果有就返回结果,如果没有第一个人就会询问第二个人,第二个人的行为和第一个人的行为一致的,然后一致传递下去,直到找到答案,或者是最后没有资料,返回。
首先创建一个基类:
//base class
class Person
{
public:
virtual void getInfo(string...
分类:
其他好文 时间:
2014-06-01 08:54:15
阅读次数:
286