一、[root@wuy2 etc]# getconf LONG_BIT[root@wuy2 etc]# getconf WORD_BIT(32位的系统中int类型和long类型一般都是4字节,64位的系统中int类型还是4字节的,但是long已变成了8字节inux系统中可用"getconf WORD...
分类:
系统相关 时间:
2014-11-05 12:21:16
阅读次数:
284
先是概念的理解: Unicode/UCS的压缩形式--UTF8出现了,套用官方网站的首句话『UTF-8 stands for Unicode Transformation Format-8. It is an octet (8-bit) lossless encoding of Unicode ch...
分类:
Web程序 时间:
2014-11-05 10:39:02
阅读次数:
202
BloomFilter 的原理和应用Bloom Filter 原理Bloom Filter是一种空间效率很高的随机数据结构,它的原理是,当一个元素被加入集合时,通过K个相互独立的Hash函数将这个元素映射成一个位阵列(Bit array)中的K个点,把它们置为1。检索时,我们只要看看这些点是不是都是...
分类:
其他好文 时间:
2014-11-04 19:11:58
阅读次数:
284
问题:想写一个小程序可读取图片的色深(bit-depth)。网上有一些软件可完成这个功能,但是我想把程序做成一个可移植的插件。本想用c写的,但实在麻烦,最后选择java,与很多方法不用自己写,速度快。最后打包成一个jar包,只要装了jdk就可以在控制台运行。我用的是MYECLIPSE,步骤如下:1....
分类:
编程语言 时间:
2014-11-04 18:51:30
阅读次数:
272
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
其他好文 时间:
2014-11-04 18:48:23
阅读次数:
187
CREATE FUNCTION D_ByteExchangeS_Byte(@str NVARCHAR(4000), --要转换的字符串@flag bit --转换标志,0转换成半角,1转换成全角)RETURNS nvarchar(4000)ASBEGIN DECLARE @pat nvarchar(...
分类:
数据库 时间:
2014-11-04 12:52:58
阅读次数:
173
题目描述:
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the s...
分类:
其他好文 时间:
2014-11-04 11:09:10
阅读次数:
135
Heavy TransportationTime Limit: 3000msMemory Limit: 30000KBThis problem will be judged onPKU. Original ID:179764-bit integer IO format:%lld Java class...
分类:
其他好文 时间:
2014-11-03 16:11:25
阅读次数:
244
Median Weight BeadTime Limit: 1000msMemory Limit: 30000KBThis problem will be judged onPKU. Original ID:197564-bit integer IO format:%lld Java class n...
分类:
其他好文 时间:
2014-11-03 14:29:19
阅读次数:
222
Main.cpp
#include
#include /* for exit */
using namespace std;
static void display()
{
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_POLYGON);
glVertex2f(-0.5, -0.5);
glVertex2f(-0.5, 0.5);
...
分类:
系统相关 时间:
2014-11-02 13:52:48
阅读次数:
348