//GKB 转换UTF8 // 字符转换 #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)std::string Win32GBKToUTF8(c_char* pStr){ std::string str = pStr; std::string strOut ...
分类:
其他好文 时间:
2017-01-14 18:22:12
阅读次数:
125
1、订阅者程序 我们继续使用 turtlesim 作为测试平台,订阅 turtlesim_node发布的/turtle1/pose 话题。 这一话题的消息描述了海龟的位姿 (位置和朝向) 。尽管目前你已经对这一程序的某些部分感到熟悉了,但这里还是有三个新的知识点。 编写回调函数 发布和订阅消息的一个 ...
分类:
其他好文 时间:
2017-01-14 18:23:34
阅读次数:
212
#include #include #include using namespace std; char s[101],t[101]; int ls,lt; int extend[101],next[101]; void getnext() { int a=0; next[0]=lt; while(... ...
分类:
其他好文 时间:
2017-01-14 18:23:12
阅读次数:
175
// TransitionJumpZoom// 作用: 创建一个跳动的过渡动画// 参数1:过渡动作的时间// 参数2:切换到目标场景的对象// auto action = TransitionJumpZoom ::create(time , scene);// Director::getInsta ...
分类:
其他好文 时间:
2017-01-14 18:20:12
阅读次数:
209
续上一节说明 一开始我也是使用haproxy来做的,但后来方式改了,是因为物理机controller的高配置有些浪费,我需要1组高可用的上层nginx代理服务器来实现其它域名80代理访问,很多办公网测试的域名解析58.251.17.238的IP,都是复用走这组controller的nginx 测试环 ...
分类:
其他好文 时间:
2017-01-14 18:19:14
阅读次数:
269
素数(质数)的判定 (1)最基本素数判定方法大家熟悉,只用看看2到n(或n的平方根)之间有没有n的约数: #include void main() { int i,n; scanf("%d",&n); for(i=2;i int n,i,j,a[1000001],p[100000],t=0; voi... ...
分类:
其他好文 时间:
2017-01-14 18:17:40
阅读次数:
274
题目思路: 对于尼姆博弈我们知道:op=a[1]^a[2]……a[n],若op==0先手必败 一个简单的数学公式:若op=a^b 那么:op^b=a; 对于第i堆a[i],op^a[i]的值代表其余各个堆值的亦或值。 我们现在希望将a[i]改变成某个更小的值使得,op^a[i]=0,反过来a[i]= ...
分类:
其他好文 时间:
2017-01-14 17:29:54
阅读次数:
201
官方文档上的高可用配置,它推荐的是使用haproxy的上层代理来实现服务组件的主备访问、或者负载均衡访问 一开始我也是使用haproxy来做的,但后来方式改了 测试环境:haproxy + nginx 科兴环境:haproxy 先抛开测试环境,等下我再在4.2节中解说一下配置 两边的kxcontro ...
分类:
其他好文 时间:
2017-01-14 17:30:19
阅读次数:
196
With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing ba ...
分类:
其他好文 时间:
2017-01-14 17:28:48
阅读次数:
159
ViewCompat.animate(view) 实现动画的操作,动画兼容包; ...
分类:
其他好文 时间:
2017-01-14 17:29:20
阅读次数:
756
图像卷积与滤波的一些知识点 zouxy09@qq.com http://blog.csdn.net/zouxy09 之前在学习CNN的时候,有对卷积进行一些学习和整理,后来就烂尾了,现在稍微整理下,先放上来,以提醒和交流。 一、线性滤波与卷积的基本概念 线性滤波可以说是图像处理最基本的方法,它可以允 ...
分类:
其他好文 时间:
2017-01-14 17:28:06
阅读次数:
377
> plot(x1,x2, + main='两门课成绩关系', #图标题 + xlab='数学',#x轴标签 + ylab='语文',#y轴标签 + xlim=c(0,100),#x轴范围 + ylim=c(0,100),#y轴范围 + xaxs='i',#x轴类型 + yaxs='r', + co... ...
分类:
其他好文 时间:
2017-01-14 17:24:06
阅读次数:
259
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 37958 Accepted: 15282 Description The French author Georges Perec (1936–1982) once wrote a ...
分类:
其他好文 时间:
2017-01-14 17:25:07
阅读次数:
157
1 #include 2 #define lowbit(x) x&(-x) 3 #define LL long long 4 #define N 200005 5 #define M 1000005 6 #define mod 1000000007LL 7 #define inf 0x7ffffff... ...
分类:
其他好文 时间:
2017-01-14 17:24:32
阅读次数:
271
1.关于set C++ STL 之所以得到广泛的赞誉,也被很多人使用,不只是提供了像vector, string, list等方便的容器,更重要的是STL封装了许多复杂的数据结构算法和大量常用数据结构操作。vector封装数组,list封装了链表,map和set封装了二叉树等,在封装这些数据结构的时 ...
分类:
其他好文 时间:
2017-01-14 17:23:24
阅读次数:
245
Struts2一个重要点就是值栈。 ValueStack,是用来存储一些在各个action,或者说是通过s标签、el表达式等给前台Jsp等页面展示的东西。 ValueStack是一个接口,其内部接口非常简单: 和一个普通的栈没多大区别。 他的实现类就比较复杂了(其实也不复杂...) public c ...
分类:
其他好文 时间:
2017-01-14 17:19:14
阅读次数:
265
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int maxn=505; 8 int b[maxn],dp[maxn][maxn],sum[maxn]; 9 10 int DP(int m,i... ...
分类:
其他好文 时间:
2017-01-14 17:17:22
阅读次数:
132