整理自:http://blog.csdn.net/djb100316878/article/details/39720055,其有很多错误。。。
1:
32 位机上根据下面的代码,问哪些说法是正确的? ( )
signed char a = 0xe0;
unsigned int b = a;
unsigned char c = a;
A. a>0 && c>0 为真
B. a...
分类:
其他好文 时间:
2016-04-26 20:55:04
阅读次数:
214
进程—从进程描述符展开(一)进程内核栈结构:union task_union
在../include/linux/sched.h中定义了如下一个联合结构用来创建内核栈空间。
//../include/linux/sched.hunion task_union {
struct thread_info thread_info;
unsigned long...
分类:
系统相关 时间:
2016-04-26 20:45:49
阅读次数:
352
struct resource *platform_get_resource(struct platform_device *dev, unsigned int type, unsigned int num) { int i; for (i = 0; i < dev->num_resources; ...
分类:
其他好文 时间:
2016-04-26 12:34:42
阅读次数:
122
1、RSHash unsigned int RSHash(const std::string& str) { unsigned int b = 378551; unsigned int a = 63689; unsigned int hash = 0; for(std::size_t i = 0; ...
分类:
编程语言 时间:
2016-04-24 12:30:19
阅读次数:
248
一:Number of 1 Bits 题目: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). F ...
分类:
移动开发 时间:
2016-04-23 16:18:48
阅读次数:
261
项目开发中字符串模型建立
strstr的while dowhile模型
//int cltClient_rev(void *handle, unsigned char *buf, int *buflen)
//不要相信别人给你传送的内存地址是可用的
int getCout(char *str, char *substr, int *count)
{...
分类:
编程语言 时间:
2016-04-22 20:42:06
阅读次数:
241
C++11 中, nullptr 是空指针,可用来给(指向任意对象类型的)指针进行赋值 整型 (integral types) = char, short, int, long, long longnd and their unsigned counterparts, and bool, wchar ...
分类:
编程语言 时间:
2016-04-22 07:08:12
阅读次数:
278
The database returned no natively generated identity value问题 alter table user_table MODIFY user_id INT UNSIGNED AUTO_INCREMENT; ...
分类:
数据库 时间:
2016-04-22 07:07:41
阅读次数:
171
时间差的度量 系统的定时器硬件以固定的频率产生时钟中断,产生始终中断的间隔以HZ 常量来决定,通常在50~1200之间,x86默认是1000。HZ能够依据不同的内核来配置。 Linux 採用jiffies (unsigned long)来对时钟中断进行计数。每当发生时钟中断时jiffies的值将+1 ...
分类:
系统相关 时间:
2016-04-20 23:36:21
阅读次数:
210
页面上的元素都是节点(Node),有元素节点(Element Node)、属性节点(Attribute Node)、文本节点(Text Node)等。w3c nodeType的定义如下: const unsigned short ELEMENT_NODE = 1; const unsigned sh ...
分类:
Web程序 时间:
2016-04-20 23:12:11
阅读次数:
165