看到今天,终于自己动手写了一个自己的vector,我这个版本的vector只有vector主要的一些操作,包括原版vector的所有构造函数,begin(),end(),size(),capacity(),empty(),erase(),clear(),pop_back,push_back(),重载...
分类:
其他好文 时间:
2014-05-01 10:51:13
阅读次数:
402
原题地址:http://oj.leetcode.com/problems/lru-cache/题意:设计LRU
Cache参考文献:http://blog.csdn.net/hexinuaa/article/details/6630384 这篇博文总结的很到位。
https://github...
分类:
编程语言 时间:
2014-05-01 10:47:16
阅读次数:
501
1.先注册个github账号。2.建立版本库。建立完生成对应版本库的url,这个地方一定注意:在复制地址的下方有一句话:You
can clone withHTTPS,SSH,
orSubversion.这三种连接方式的url地址是不一样的。我开始就傻B了,用HTTPS的地址配置本地的SSH连接(在...
分类:
其他好文 时间:
2014-05-01 09:09:55
阅读次数:
353
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
add by
zhj:非常完整的介绍了一个网站从小到大,后台的设计及服务器的部署的演进过程,太牛了。原文:http://blog.sina.com.cn/zgwangbo001话说今天是清明节假期第一天,早上早早的和朋友开车逃离了帝都。现在正在G104上缓慢的爬行。言归正传,计划了很久写这篇文章,不...
分类:
Web程序 时间:
2014-05-01 08:17:29
阅读次数:
528
在VC中使用WebBrowser控件的两方法黄森堂(vcmfc)著ClassWizard方式:1.创建包装类:View->ClassWizard->Add
Class->Form a Type
Library->C:\winnt\system32\shdocvw.dll->只选择IWebBrowse...
分类:
Web程序 时间:
2014-05-01 08:15:32
阅读次数:
470
原贴地址
出过两次了,每次都查很多资料,太蛋疼,记录在此。当你的项目比较牛逼的时候,有人给你贡献代码,但他修改的地方恰恰你前阵子也修改了,这样在github中就不能够自动merge了。因此你需要手动去解决冲突。首先要在本机安装好命令行工具gitbash,之后用clone拉下你的项目,之后按照以下.....
分类:
其他好文 时间:
2014-05-01 05:40:32
阅读次数:
725
在c++中,vector是一个十分有用的容器,下面对这个容器做一下总结。1
基本操作(1)头文件#include.(2)创建vector对象,vector
vec;(3)尾部插入数字:vec.push_back(a);(4)使用下标访问元素,cout::iteratorit;for(it=vec.b...
分类:
编程语言 时间:
2014-05-01 04:46:15
阅读次数:
373
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags ...
分类:
其他好文 时间:
2014-04-29 13:24:23
阅读次数:
443
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
思路同十进制的大数相加。代码如下:
class Solution {
public:
string addBinary(string a, str...
分类:
其他好文 时间:
2014-04-29 13:12:20
阅读次数:
328