#include
using namespace std;
int main()
{
vectorvec;
for(int i = 0 ;i < 100 ; ++i)
vec.push_back(i);
cout << vec.size() << endl; //100
cout << vec.capacity() << endl; //128...
分类:
其他好文 时间:
2014-07-10 21:17:43
阅读次数:
199
1. 如何在一个应用程序中定义多个Activity2. 启动一个Activity的方法3. Android当中的back stack(历史栈)1. 如何在一个应用程序中定义多个Activity 如果将一个Android程序看成一个网站, 一个Activity就是一个网页 定义多个Activity的....
分类:
其他好文 时间:
2014-07-09 19:08:56
阅读次数:
227
ssh连接远程服务器,报警信息AddressX.X.X.Xmapstolocalhost,butthisdoesnotmapbacktotheaddress-POSSIBLEBREAK-INATTEMPT!如下:[root@upgirl~]#sshroot@192.168.0.203Address192.168.0.203mapstolocalhost,butthisdoesnotmapbacktotheaddress-POSSIBLEBREAK-INATTEMPT!root@19..
分类:
其他好文 时间:
2014-07-09 08:04:07
阅读次数:
241
最近为支付宝忙破了脑袋,以下是我终于成功后的经验以供参考 首先你得先去支付宝官网上下一个code,以供参考. 在配置时尽量不要改动文件,把需要的那几个文件(app_code,imageslog)直接放在你的项目里面,然后在建同步回传页面(call_back_url),异步回传页面(notif...
分类:
移动开发 时间:
2014-07-09 00:55:13
阅读次数:
976
一、msfconsole? 帮助菜单back 从当前环境返回banner 显示一个MSF bannercd 切换目录color 颜色转换connect 连接一个主机exit 退出MSFhelp 帮助菜单info 显示一个或多个模块的信息irb 进入irb脚本模式jobs 显示和管理作业kill 杀死...
分类:
其他好文 时间:
2014-07-08 23:37:44
阅读次数:
266
openfire 安装报这个错误 A connection to the database could not be made. View the error message by opening the "\logs\error.log" log file, then go back to fix...
分类:
数据库 时间:
2014-07-06 16:43:00
阅读次数:
284
There are a bunch of different methods you can use to back up your MongoDB data, but if you want to avoid downtime and/or potential
performance degradation, the most common advice seems to be that y...
分类:
数据库 时间:
2014-07-06 09:26:04
阅读次数:
437
按他的方法排序,每次移动一个数到顶点,排成需要的序列。
Problem D: ShellSort
He made each turtle stand on another one's back
And he piled them all up in a nine-turtle stack.
And then Yertle climbed up. He sat down on the p...
分类:
其他好文 时间:
2014-07-06 09:15:42
阅读次数:
211
vector是我使用比较多的一个容器,它相当于一个动态的数组,在STL中给他提供了很多接口,简单易懂,接下来简单的演示一下它是如何使用的。 我一般使用的一些函数接口有size(),reserve(),empty(),begin(),end(),push_back(),find(),erase(...
分类:
其他好文 时间:
2014-07-05 22:27:43
阅读次数:
276
缓存方式: 直接映射 N路关联缓存策略: write through:通写 write back:回写进程类别: 交互式进程(IO密集型) 批处理进程(CPU密集型) 实时进程(Real-time)CPU: 时间片长,优先级低IO:时间片短,优先级高Linux优先级:priority ...
分类:
其他好文 时间:
2014-07-05 22:06:21
阅读次数:
357