vector的基本操作v.empty()如果V中不含有任何元素,返回真;否则返回假v.size()返回v中元素的个数v.push_back向vector尾端中添加元素v[n]返回V中第n个位置元素的引用v1=v2用v2中元素的拷贝替换v1中的元素v1={a,b,c,d}用列表中的元素拷贝替换v1中的...
分类:
其他好文 时间:
2015-01-05 20:25:15
阅读次数:
236
这一块主要是理论的讲解,本人刚接触这块不久,就不敢翻译了,请参见园子里其他人的现有文章http://www.cnblogs.com/TomXu/archive/2011/11/22/2256820.html文章内容:新手没必要知道太清楚,但是高级开发人员可以需要知道为什么依赖监控属性能够自动跟踪并且...
分类:
其他好文 时间:
2015-01-05 12:50:55
阅读次数:
226
貌似停笔了近半个月了,实在不该啊,新的一年,对自己抱有新的期许,学习不能断,时刻让自己归零。Back To Zero,就从这篇文章拉开今年的序幕吧!!这篇文章准备分成2部分来写第一部分介绍下有关代理模式的基本概念和静态代理、动态代理的优缺点及使用方法(包括扩展包CGLIB)第二部分准备讲下如何自定义...
分类:
其他好文 时间:
2015-01-04 18:52:47
阅读次数:
226
Key Concept: TypesTypes are one of the most fundamental concepts in programming and aconcept that we will come back to over and over in this Primer. A...
分类:
编程语言 时间:
2015-01-04 18:40:01
阅读次数:
191
输入人数n,开始位置s ,间隔数多少个m,输出出局序列
#include
#include
using namespace std;
void Out(int n,int s,int m)
{
vector people;
for (int i=1;i<=n;i++)
{
people.push_back(i);
}
int start = s-1;
int ...
分类:
其他好文 时间:
2015-01-04 10:07:21
阅读次数:
145
Design a system to take user-provided URLs and transform them to a shortened URLs that redirect back to original.Questions:1. How many URLs shall we k...
分类:
Web程序 时间:
2015-01-03 15:52:05
阅读次数:
15540
Tracking学习系列原创,转载标明出处:http://blog.csdn.net/ikerpeng/article/details/40144497这篇文章非常赞啊!非常有必要将其好好的学习,今天首先记录它的代码思路(具体的推导过程后面会给出的)。首先,这篇文章使用的决策函数是一个结构风险最小化...
分类:
其他好文 时间:
2015-01-03 11:51:11
阅读次数:
210
这道题没什么好说的,二分法查找class Solution {public: vector range; vector searchRange(int A[], int n, int target) { range.push_back(-1); range.push_b...
分类:
其他好文 时间:
2015-01-01 17:19:32
阅读次数:
135
1. Javascript 返回上一页 history.go(-1), 返回两个页面: history.go(-2); ? 2. history.back(). ? 3. window.history.forward()返回下一页 ? 4. window.history.go(返回第几页,也可以使用访问过的URL) ? 例...
分类:
编程语言 时间:
2014-12-31 16:34:26
阅读次数:
184
Recently, I pick back my major knowledge, English because I found I almost forget it. Maybe I should go abroad for further study, or maybe I can ...
分类:
其他好文 时间:
2014-12-31 14:15:30
阅读次数:
170