一、XEN API?VDI clone (session session_id, VDI vdi, Map[string,string] driver_params) Take an exact copy of the VDI and return a reference to the new di...
分类:
其他好文 时间:
2014-07-31 13:02:06
阅读次数:
248
自从php5.3,越来越多的人会遇到“Assigning the return value of new by reference is deprecated in xxxx”这样的提示,尤其是在国外产品中(例如wordpress、joolma),很多人的解决办法很简单:把php版本换回就版本就ok...
分类:
其他好文 时间:
2014-07-31 12:57:16
阅读次数:
191
#include #include int main(){char c,str[1000][1000],flag = 0,count; int x,y,i,j;while(1) { x = 0; y = 0;while((c = getchar() )!= '\n'){if (c == '#'){f...
分类:
其他好文 时间:
2014-07-31 12:41:36
阅读次数:
246
模板左值右值的转换
/**
* 功能:模板左值右值的转换
* 时间:2014年7月27日08:18:06
* 作者:cutter_point
*/
#include
#include
#include
using namespace std;
template
auto fcn(It beg, It end) -> typename remove_reference::ty...
分类:
编程语言 时间:
2014-07-31 09:55:27
阅读次数:
312
上一篇我们简单介绍了Actor系统,说明了Actor之间存在着层次关系,它也是构成Actor应用的最基本的单位。本篇介绍Actor本身的一些基本概念。一个Actor包含了State(状态),Behavior(行为),一个Mailbox(邮箱)和Supervisor Strategy (管理员策略),所有这些都封装在一个Actor引用之中(Actor Reference)。Actor 引用一个Act...
分类:
其他好文 时间:
2014-07-31 09:54:56
阅读次数:
457
给定一个二分图G,M为G边集的一个子集,如果M满足当中的任意两条边都不依附于同一个顶点,则称M是一个匹配。Reference:google上搜"ByVoid 二分图"(被墙了T^T)计算二分图的最大匹配:匈牙利算法模板:#include #include #define MAX 102long n,...
分类:
其他好文 时间:
2014-07-31 09:41:15
阅读次数:
270
原文:http://peeterjoot.wordpress.com/2010/07/07/avoiding-gdb-signal-noise/A quick note for future reference (recorded elsewhere and subsequently lost).S...
分类:
数据库 时间:
2014-07-31 02:44:25
阅读次数:
303
题意:对一串数字进行抑或某数,和某数,或某数,统计某区间和的操作。思路:因为化成二进制就4位可以建4颗线段树,每颗代表一位二进制。and 如果该为是1 直接无视,是0则成段赋值为0;or 如果是0 无视,是1则成段赋值为1;xor 成段亦或,1个数和0个数交换;sum 求和;#include#inc...
分类:
其他好文 时间:
2014-07-31 02:22:55
阅读次数:
258
#include map dict;map是基于红黑树实现的,可以快速查找一个元素是否存在,是关系型容器,能够表达两个数据之间的映射关系。dict.insert(make_pair("abc",1));dict.count("mn"); 看看dict中含有 mn的个数,因为元素是唯一的,所以这个返回...
分类:
其他好文 时间:
2014-07-30 23:52:05
阅读次数:
357
水题:
代码如下:
#include
#include
int main()
{
int n,m,i,j,count;
double c,sc;//设为double型才给通过
double s,s1,s2;
char name[33];
scanf("%d",&n);
while(n--)
{
s1=s2=0;
count=0;
scanf(...
分类:
其他好文 时间:
2014-07-30 20:58:04
阅读次数:
148