---- 表的结构 `yi_article`--CREATE TABLE IF NOT EXISTS `yi_article` ( `id` int(11) unsigned NOT NULL auto_increment, `title` varchar(256) NOT NULL, `conte...
分类:
其他好文 时间:
2015-06-17 09:21:34
阅读次数:
121
// advanced encryption standard// author: karl malbrain, malbrain@yahoo.comtypedef unsigned char uchar;#include #include // AES only supports Nb=4#def...
分类:
其他好文 时间:
2015-06-16 22:38:42
阅读次数:
224
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return...
分类:
其他好文 时间:
2015-06-16 20:48:13
阅读次数:
101
NSCalendar *cal = [NSCalendar currentCalendar];unsigned int unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit;NSDateComponents ...
分类:
其他好文 时间:
2015-06-16 12:56:30
阅读次数:
112
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary representation 000000000000...
分类:
其他好文 时间:
2015-06-15 13:10:05
阅读次数:
99
要得到最大的int值: 1.利用(unsigned int)-1,这样得到的就是unsigned int表示的最大值。 2.int值只是比unsigned int多一位符号位,所以对(unsigned int)-1右移一位就可以得到最大的int值。 3.也就是(int)((unsigned i...
分类:
编程语言 时间:
2015-06-14 21:19:32
阅读次数:
139
在globals.h中定义方法:char* lr_guid_gen(char* paramName){ //生成GUID方法typedef struct _GUID {unsigned long Data1;unsigned short Data...
分类:
其他好文 时间:
2015-06-14 18:27:48
阅读次数:
1671
#include
#include
#include
#include
#include /*8*16*8=1024,1024代表密钥长度(二进制位数)*/
unsigned char data[] =
{ 0x97, 0xF6, 0x42, 0x61...
分类:
编程语言 时间:
2015-06-14 15:11:20
阅读次数:
224
sql example 3 – foreign_keysql example 3 – foreign_keysql create优点:保持数据一致性, 完整性实现一对一或者一对多的关系要求:必须使用相同的存储引擎 – InnoDB /etc/my.cnf数字长度, 是否是 unsigned 的属性相...
分类:
数据库 时间:
2015-06-14 12:21:21
阅读次数:
126
1. 数值类型 Int (TINYINT, SMALLINT, MEDIUMINT,INT,BIGINT) 默认是:signed unsigned 无符号,不能取负数 ZEROFILL 修饰符规定 0(不是空格)可以用来真补输出的值。使用这个修饰符可以阻止 MySQL 数据库存储负值 zerofil...
分类:
数据库 时间:
2015-06-14 10:43:26
阅读次数:
145