基本概念 Open() – creates a DB Close() - closes the DB Query() - 查询 QueryRow() -查询行 Exec() -执行操作,update,insert,delete Row - A row is not a hash map, but an abstraction of a cursor Next...
分类:
数据库 时间:
2015-08-09 17:20:35
阅读次数:
280
vc下有2个版本的散列表类,hash_map和unordered_map,hash_map位于stdext命名空间,unordered_map在std命名空间(vs2008及其之后的版本可用),官方推荐使用unordered_map,前者是一个旧的非标版本。2者使用起来很类似,但构造函数有明显不同....
分类:
其他好文 时间:
2015-08-09 15:31:13
阅读次数:
144
map的三种遍历方法! 集合的一个很重要的操作---遍历,学习了三种遍历方法,三种方法各有优缺点~~/** To change this template, choose Tools | Templates* and open the template in the editor.*/packag....
分类:
其他好文 时间:
2015-08-09 13:51:04
阅读次数:
110
这是无向图的void Floyd(){ memset(v, 0x3f, sizeof v); for(int i = 1; i <= n; i++) for(int j = 1; j <= n; j++) v[i][j] = map[i][j]; for...
分类:
其他好文 时间:
2015-08-09 12:28:26
阅读次数:
198
Heavy CargoTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 3768Accepted: 2013DescriptionBig Johnsson Trucks Inc. is a company specialized in ...
分类:
其他好文 时间:
2015-08-09 12:26:34
阅读次数:
122
原始链接:https://www.zybuluo.com/jewes/note/35032RDD是什么?A Resilient Distributed Dataset (RDD), the basic abstraction in Spark. Represents an immutable(不可改...
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) -
Get the value (will always be positive) of the key if ...
分类:
系统相关 时间:
2015-08-08 21:25:18
阅读次数:
261
Given two strings s and t, write a function to determine if t is an anagram of s.
For example,
s = "anagram", t = "nagaram", return true.
s = "rat", t = "car", return false.
Note:
You may a...
分类:
其他好文 时间:
2015-08-08 21:21:56
阅读次数:
140
std map是STL的一个关联容器,它提供一对一(其中第一个可以称为关键字,每个关键字只能在map中出现一次,第二个可能称为该关键字的值)的数据处理能 力,由于这个特性,它完成有可能在我们处理一对一数据的时候,在编程上提供快速通道。这里说下std map内部数据的组织,std map内部自建一颗红...
分类:
编程语言 时间:
2015-08-08 19:37:46
阅读次数:
186
读写锁 package?cn.sniper.thread.lock;
import?java.util.HashMap;
import?java.util.Map;
import?java.util.concurrent.locks.Lock;
import?java.util.concurrent.locks.ReadWriteLock;
import?java.util...
分类:
编程语言 时间:
2015-08-08 16:44:12
阅读次数:
283