dpi是什么呢?dpi是“dot per inch”的缩写,每英寸像素数。四种密度分类: ldpi (low), mdpi (medium), hdpi (high), and xhdpi (extra high)一般情况下的普通屏幕:ldpi是120,mdpi是160,hdpi是240,xhdpi...
分类:
移动开发 时间:
2014-09-24 11:55:06
阅读次数:
175
维护每个区间的最小值和最大值,update的时候判断low[rt]与up[rt]和p的大小关系,进行更新操作。卡时卡得很紧。#include #include #include #include #include #define lson l,m,rtb)return a; return b;...
分类:
其他好文 时间:
2014-09-24 00:12:55
阅读次数:
263
AndroidAsync is a low level network protocol library. If you are looking for an easy to use, higher level, Android aware, http request library, check out?Ion?(it is built on top of AndroidAsync)....
分类:
移动开发 时间:
2014-09-23 18:05:35
阅读次数:
395
1.下载NDK和cygwin,以及cocos2d-x-2.2.3cygwin目录下,如本人安装目录如下D:\cygwin64\home\dong然后用编辑器(不要用记事本,太low)点开.bash_profile,然后在最下面加上ndk路径以及cocos2dx路径NDK_ROOT=/cygdrive...
分类:
移动开发 时间:
2014-09-23 10:07:44
阅读次数:
270
多项式相加是一个简单到爆的算法练习,学习链表之后一般会波拉波拉讨论稀疏的、稠密的用什么来表示,最后一般都作为链表的练习题出现。其实用数组表示多项式显然是不合理的,大多数的多项式必然没有如此紧密,链表几乎是唯一的选择。 放在C++这样的语言中,直接构建一个poly结点类,然后构建一个poly类(包含一...
分类:
编程语言 时间:
2014-09-23 01:21:13
阅读次数:
252
我们常常导入数据!mysql有一个高效导入方法,那就是load data infile 下面来看案例说明基本语法:load data [low_priority] [local] infile 'file_name txt' [replace | ignore]into table tbl_nam....
分类:
数据库 时间:
2014-09-22 18:24:32
阅读次数:
362
/*
线段树延迟更新+状态压缩
*/
#include
#define N 1100000
struct node {
int x,y,yanchi,sum;
}a[N*4];
int lower[31];
void build(int t,int x,int y) {
a[t].x=x;
a[t].y=y;
a[t].yanchi=0;
if(x==y){
a[t].sum=low...
分类:
其他好文 时间:
2014-09-22 17:34:13
阅读次数:
232
dpi是什么呢? dpi是“dot per inch”的缩写,每英寸像素数。 四种密度分类: ldpi (low), mdpi (medium), hdpi (high), and xhdpi (extra high) 一般情况下的普通屏幕:ldpi是120,mdpi是160,hdpi是240,xh...
分类:
移动开发 时间:
2014-09-22 14:00:32
阅读次数:
243
【Half Lambert】 Half Lambert was a technique created by Valve as a way of getting the lighting to show the surface of an object in low-light areas. It....
分类:
其他好文 时间:
2014-09-18 13:03:03
阅读次数:
200
#include #include #include using namespace std;int BinSearch(vector ivec, int key) //循环实现的二分查找要比递归实现效率要高很多,推荐使用这种方法{ int low = 0, high = ivec.siz...
分类:
编程语言 时间:
2014-09-18 00:40:02
阅读次数:
292