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
参与运算的两个值,如果两个相应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
#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
1、Drawable就是一个可画的对象,其可能是一张位图(BitmapDrawable),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable),我们根据画图的需求,创建相应的可画对象
2、Canvas画布,绘图的目的区域,用于绘图
3、Bitmap位图,用于图的处理
4、Matrix矩阵
1、从资源中获取Bit...
分类:
其他好文 时间:
2014-07-16 16:41:17
阅读次数:
229
问题:编译Socket时候出现socket bind error:Socket operation on non-socket时间:2014-7-14解决:注意“==”和“=”的优先级,前者是大于后者的,故而在处理一些表达式的时候,注意加括号注意:注意下面标注闪光字体的地方#include #inc...
分类:
其他好文 时间:
2014-07-16 15:21:29
阅读次数:
190
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)
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
bitset可以用来处理位图问题,用位可以大大减少占用的空间内存,但是位图问题适合处理不重复的,在一定范围内的整数问题。用两个位图可以处理只出现一次问题#include bitset bit;//初始化会默认都为0。bitset用法bitset最大支持到多少?理论上只要内存够大就可以,跟数组一样细节...
分类:
其他好文 时间:
2014-07-14 21:31:14
阅读次数:
274
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