码迷,mamicode.com
首页 >  
搜索关键字:get map    ( 100944个结果
字符串匹配的KMP算法(转载)
字符串匹配是计算机的基本任务之一。举例来说,有一个字符串"BBC ABCDAB ABCDABCDABDE",我想知道,里面是否包含另一个字符串"ABCDABD"?许多算法可以完成这个任务,Knuth-Morris-Pratt算法(简称KMP)是最常用的之一。它以三个发明者命名,起头的那个K就是著名科...
分类:其他好文   时间:2014-05-01 08:40:55    阅读次数:316
eclipse c++
http://cmakeed.sourceforge.net/eclipse/ cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug -D_ECLIPSE_VERSION=4.2 ../src
分类:编程语言   时间:2014-05-01 08:37:42    阅读次数:319
Caching Tutorial
for Web Authors and WebmastersThis is an informational document. Although technical in nature, it attempts to make the concepts involved understandabl...
分类:其他好文   时间:2014-05-01 08:37:04    阅读次数:438
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-05-01 08:35:40    阅读次数:443
js进阶
上篇博客提到js是纯oop思想的语言 也就是在使用js编程的时候注重的是:什么时候 什么东西 做什么。 之前提到Js一经加载会马上执行,如果我们要控制的对象在js代码的下面那么网页被打开时js会先被执行然后加载下面的html代码,当js被执行的时候,下面的html代码还没加载到,js控制的对象...
分类:Web程序   时间:2014-05-01 08:33:03    阅读次数:488
const map 成员变量初始化例子
Author:DriverMonkey Mail:bookworepeng@Hotmail.com Phone:13410905075 QQ:196568501 #include #include #include #include #include #include using namespace std; class a_t { publi...
分类:其他好文   时间:2014-04-29 13:35:21    阅读次数:598
STL 之 map 源码剖析
/* * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, ...
分类:其他好文   时间:2014-04-29 13:28:21    阅读次数:398
Tornado写简易服务器
我们都知道在Web开发中,都需要服务器,比如Java Web开发的Tomcat,WebLogic,WebSphere,现在来看利 用Tornado Web Server框架如何写一个简易的Python服务器。 一般来说只需要实现get和post方法就可以了。以上次使用redis数据库的例子说明,数据库插入代码如下: import redis import datetime clas...
分类:其他好文   时间:2014-04-29 13:17:20    阅读次数:397
Timus 2002. Test Task 一个登陆系统
实现一个登陆系统。 思路: 1 使用map,在map中的就是已经注册的了 2 使用数据结构保存用户名,是否登陆和密码 3 使用if else判断处理第一个字符串-命令 类似很多人都写的什么图书馆管理系统,什么信息系统之类的登陆控制管理,都是很简单的东西,一步一步写就不会错了,完成速度相当于打字速度。...
分类:其他好文   时间:2014-04-29 13:16:21    阅读次数:298
Struts工作机制图+OGNL+EL+值栈(Map,对象栈)
struts 值栈  通过get set方法 方便的获取,设置属性值      例如从jsp页面传来的参数。。。从Action设置jsp所要回显的内容...
分类:其他好文   时间:2014-04-29 13:16:21    阅读次数:256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!