码迷,mamicode.com
首页 >  
搜索关键字:container    ( 5967个结果
#11 Container With Most Water
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:其他好文   时间:2015-04-16 23:23:23    阅读次数:127
Leetcode: Container With Most Water
题目: Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find tw...
分类:其他好文   时间:2015-04-16 21:59:36    阅读次数:114
STL源码剖析--空间配置器
STL的设计非常巧妙,组件间互取短长,形成了一个世界,这是这个世界里的组件: 1. containers(容器):所谓容器,是指存放数据的地方,将数据以一定的方法组织存放。根据不同的组织方式,可以把容器分为顺序容器,如vector、deque、list,关联容器,如set、map。Container是一种class template。 2. algorithm(算法):各种常用不常用的算法如s...
分类:其他好文   时间:2015-04-16 21:55:30    阅读次数:220
starting Tomcat v7.0 Server at localhost has encountered a problem
异常如下 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[local...
分类:其他好文   时间:2015-04-16 19:55:57    阅读次数:440
linux内核基础层的学习(1)
一:内核基础层数据结构 1:双向链表list a):链表的定义struct list_head{ struct list_head *next,*pre; }b):container对象和list_entry#define container_of(ptr,type,member){ const typeof(((type *)0->member) *_mptr = (...
分类:系统相关   时间:2015-04-16 12:28:29    阅读次数:238
11. Container With Most Water
题目:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints ...
分类:其他好文   时间:2015-04-16 01:17:43    阅读次数:127
STL 之 set 使用详解
使用set和multiset前包含头文件 set、multiset都是集合类,差别在与set中不允许有重复元素,multiset中允许有重复元素。他们都是有序集合。 std::set is an associative container(关联容器) that contains a sorted set of unique objects of type Key. Sorting is...
分类:其他好文   时间:2015-04-15 21:35:17    阅读次数:208
container_of()宏
最近学习为Android添加编写内核驱动,遇到的第一个问题就是linux中大名鼎鼎的container_of()宏。 container_of()是Linux内核中一个非常重要的宏,主要功能就是:根据结构体中一个域成员的地址获取整个结构体的地址。 container_of()定义如下: 1 ...
分类:其他好文   时间:2015-04-15 18:39:11    阅读次数:103
使用fragmenttabhost后,子fragment怎么获取ID?怎么用getSharedPreferences
使用fragmenttabhost后,子fragment怎么获取ID?怎么用getSharedPreferencespublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sav...
分类:其他好文   时间:2015-04-15 12:47:36    阅读次数:244
读取CSV文件
CommaTextIO m_CSVFile; container m_con; InventTable m_inventTable; int i; #File ; m_CSVFile = new CommaTextIO("C:\\Users\\JSZhang1002\\Desktop...
分类:其他好文   时间:2015-04-15 11:05:27    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!