#include struct dirent { long d_ino;//inode number索引节点号 off_t d_off;//offset to this dirent 在目录文件中的偏移 unsigned short d_reclen;//length of this d_na...
分类:
其他好文 时间:
2014-10-13 00:45:08
阅读次数:
239
// 基元类型 // 1.布尔型 bool a1 = true;// true、false,例如男女 // 2.整数类型 byte a2 = 0;// 0-255,颜色RGB,年龄,一个字节 sbyte a3 = 0;// -128到127 short a4 = ...
分类:
其他好文 时间:
2014-10-12 22:00:28
阅读次数:
199
位运算的定义:通俗点说,位运算就是对一个整数在计算机中二进制进行操作。
任何一个整数都可以用二进度的方式来表示的,不同类型的整数它的位数的长度也不一样,INT8或者char是由8个2进度
位表示,INT16或者short是由16个2进度位表示,INT32是由32位状态位表示。
位运算在游戏中的应用
往往,在游戏开发中做位运算的时候,我关注的主要是某一位的值是0,还是1,而并不是去关注这...
分类:
编程语言 时间:
2014-10-12 20:30:48
阅读次数:
215
类型 v?? void? 只能用于返回值类型 Z?? boolean B?? byte S?? short C?? char I??? int J??? long???????? 2个寄存器 F?? float D?? double? 2个寄存器 对象类型:Lpackage/name...
分类:
其他好文 时间:
2014-10-12 18:58:58
阅读次数:
206
Hibernate主键生成策略1、自动增长identity适用于MySQL、DB2、MS SQL Server,采用数据库生成的主键,用于为long、short、int类型生成唯一标识使用SQL Server 和 MySQL 的自增字段,这个方法不能放到 Oracle 中,Oracle 不支持自增字...
分类:
Web程序 时间:
2014-10-12 14:08:28
阅读次数:
249
1.去除掉多余的空格:e.g. Before: Life___is__short___I___use___python_'\0'(下划线为空格) After: Life_is_short_I_use_python'\0'(去除掉多余的空格)去掉空格比较简单,我们可以通过逐个判断字符,如果有连续的空....
分类:
编程语言 时间:
2014-10-12 00:36:36
阅读次数:
254
4、数据类型介绍 数据:文本数据、音频、视频、图像、数字 C语言中有5大数据类型:基本类型、构造类型、空类型、指针类型、自定义类型 基本数据类型: 整型 长整型long int 整型int(4) 端整型short int 实型 单精度float(4) 双精度 doubl...
分类:
编程语言 时间:
2014-10-11 23:43:56
阅读次数:
233
Example:#pragma pack(2)struct One{ char c; short b; char a;};print: 6#pragma pack(2) struct One { char a; char c; short b; };print: 4#pragma p...
分类:
其他好文 时间:
2014-10-11 18:56:45
阅读次数:
240
找到了别人遇到和我一样的问题:http://ylad.codeplex.com/discussions/430095(英文)一位叫做Mister Goodcat的提供了信息:Short answer: XPath is not supported on the phone. If you want ...
分类:
Web程序 时间:
2014-10-10 15:46:20
阅读次数:
145
错误描述:编译时报错:Cannot merge new index 66212 into a non-jumbo instruction。错误原因:Dalvik 对 method_id 由一个 short int(2个字节)标识。,一旦工程方法数超过64k method_id溢出,导致无法编译。 解...
分类:
其他好文 时间:
2014-10-10 14:35:24
阅读次数:
138