码迷,mamicode.com
首页 >  
搜索关键字:subsets bit    ( 10933个结果
Ant部署(linux)
1、下载mkdir /opt/antcd /opt/antwget http://mirror.bit.edu.cn/apache//ant/binaries/apache-ant-1.9.4-bin.tar.gz2、解压cd /opt/anttar -zxvf apache-ant-1.9.4-b...
分类:系统相关   时间:2014-07-19 21:34:42    阅读次数:281
leetcode中一些要用到动态规划的题目
需要仔细回顾的题目:1.Interleaving String 交叉存取字符串2.Decode Ways 字符串解码3.Subsets Subsets II 求一个集合的幂集
分类:其他好文   时间:2014-07-19 21:07:33    阅读次数:148
any cpu ×86 ×64
On a32-bitmachine:Any CPU: runs as a 32-bit process, can loadAny CPUandx86assemblies, will getBadImageFormatExceptionif it tries to load anx64assembly...
分类:其他好文   时间:2014-07-17 10:00:48    阅读次数:235
按位异或的用法总结
参与运算的两个值,如果两个相应bit位相同,则结果为0,否则为1。即: 0^0 = 0, 1^0 = 1, 0^1 = 1,1^1 = 0按位异或的3个特点:(1) 0^0=0,0^1=1 0异或任何数=任何数(2) 1^0=1,1^1=0 1异或任何数-任何数取反(3) 任何数异或自己=把自己置....
分类:其他好文   时间:2014-07-16 23:50:36    阅读次数:503
[整理]C结构实现位段(bit field)
#include #include typedef struct A{ int a:5; int b:3; unsigned c:8; unsigned d:8;} Type_A;/* VS2010, Windows XP, Debug模式下运行 */int main(void){ struc...
分类:其他好文   时间:2014-07-16 16:47:14    阅读次数:210
Bitmap,byte[],Drawable相互转化
1、Drawable就是一个可画的对象,其可能是一张位图(BitmapDrawable),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable),我们根据画图的需求,创建相应的可画对象 2、Canvas画布,绘图的目的区域,用于绘图 3、Bitmap位图,用于图的处理 4、Matrix矩阵 1、从资源中获取Bit...
分类:其他好文   时间:2014-07-16 16:41:17    阅读次数:229
Bit operator: Left shift and Right shift (Signed or unsigned? )
No matter left shift or right shift, the result's sign should always be the same as its left operand. By default, const numbers in C/C++ is signed. -Wsign-compare {      unsigned int j = 3;      ...
分类:其他好文   时间:2014-07-16 12:59:21    阅读次数:238
位字段
1. 位字段(bit field)是一个signed int或unsigned int中一组相邻的位(C99还允许_Bool类型位字段)。C使用unsigned int作为给位字段结构分配内存空间的基本单位。位字段由一个结构声明建立,该结构声明为每个字段提供标签,并决定字段的宽度。例如,以下声明建立...
分类:其他好文   时间:2014-07-16 12:24:56    阅读次数:219
C++ 11开发环境搭建(Windows Platform)
C++ 11开发环境搭建(Windows Platform) IDE:Code::Blocks  12.11版本 Compiler:TDM-GCC        http://tdm-gcc.tdragon.net/           TDM64 Bundle GCC 4.8.1 问:什么是TDM-GCC? 答:A compiler suite for 32- and 64-bit Wi...
分类:编程语言   时间:2014-07-15 22:35:06    阅读次数:307
A. Nearest Common Ancestors
A. Nearest Common AncestorsTime Limit:1000msCase Time Limit:1000msMemory Limit:10000KB64-bit integer IO format:%lld Java class name:MainA rooted tree ...
分类:其他好文   时间:2014-07-14 20:09:24    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!