最近在写一个百度地图的小应用,毕竟屏就那么大一点,要在上面放几个按钮,怎么布置都难看。百度了一下,发现侧滑菜单挺好,可百度地图就是用手滑的啊,你妹,这两个玩意居然还冲突,我去年买了个表。于是乎,就想到了上推菜单,不能用滑屏来处理,那就用个按钮来激发上推事件吧。因为是新手啥JB玩意都不懂,问群里的大大们,说得用平移动画,我又百度了半天一看都TM太高大上,用不好。偶然在一段代码中发现了
Linear...
分类:
移动开发 时间:
2014-05-19 23:00:55
阅读次数:
455
from:http://bbs.csdn.net/topics/370040889全半角转换最tm的烦人,快捷键是shift+space,不小心按到,就各种不爽,系统看着是可以重新设置快捷键的,但是在设置那里,你设置好,点击应用,又变成shift+space了。。怎么能彻底的关闭?我用的搜狗输入法,...
前言 本文将介绍 OpenCV 中的矩阵结构 CvMat
并提供一些很实用的技巧。CvMat的类型定义 1 typedef struct CvMat 2 { 3 int type; // 数据类型 4 int
step; // 行长度 5 int* refcou...
分类:
其他好文 时间:
2014-05-18 18:54:07
阅读次数:
1771
>__ 2 // C 运行时头文件 3 #include 4 #include 5
#include 6 #include 7 #include 8 #include 9 10 11 //定义结构,飞机子弹 12 struct BULLET{
13 int x...
前几天被OpenCV的直方图的数据结构CvHistogram弄得很纠结。上网一搜,也没什么相关的资料。现在有点头绪了,就写点东西,让后面的人好走一些吧。先来看看CvHistogram的定义:typedef
struct CvHistogram{ int type; CvArr* bins; floa...
分类:
其他好文 时间:
2014-05-17 22:55:27
阅读次数:
644
先序遍历和中序遍历非递归代码:#include #include using
namespace std;typedef struct BinaryTree { int data; struct BinaryTree *rchild,
*lchild;}BinaryTree;int cr...
分类:
其他好文 时间:
2014-05-17 21:56:50
阅读次数:
264
线段树中对一段区间操作的方法----记录增量。详细实现见代码。还要好好体会! 1 //Accepted
6688K 1485MS 2 #include 3 #include 4 #define imax 100005 5 struct node 6 { 7 int
l...
分类:
其他好文 时间:
2014-05-17 21:18:35
阅读次数:
312
1 //Accepted 2384K 1766MS 2 #include 3 #include
4 #define imax 50005 5 struct node 6 { 7 int l,r; 8 int tmax,tmin; 9
}f[3*imax];10 in...
分类:
其他好文 时间:
2014-05-17 21:16:33
阅读次数:
281
1 //Accepted 250MS 2480K 2 #include 3 #include 4
const int MAXN = 50005; 5 struct node 6 { 7 int l,r; 8 int add,sum; 9
}f[3*MAXN];10 int n;...
分类:
其他好文 时间:
2014-05-17 20:36:37
阅读次数:
316
#include //#include #include #define PORT 5150
#define DATA_BUFSIZE 8192 typedef struct { OVERLAPPED Ov...
分类:
其他好文 时间:
2014-05-17 18:37:33
阅读次数:
297