码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
C语言基础知识
1. C语言中无符号数与有符号数 unsigned int a = 6; int b = -20; printf("a+b = %d\n",a+b); #输出-14 printf("a+b %s \n",(a+b)>0 ? "> 0":" 0 有符号数和无符号数在进行比较运算时(==,>=,,0 记...
分类:编程语言   时间:2015-04-14 12:47:45    阅读次数:147
每天一点C语言
example1: 1 #include 2 #include 3 using namespace std; 4 5 int main () 6 { 7 unsigned int a = 998; 8 int b = -1; 9 if ( a b )14 {1...
分类:编程语言   时间:2015-04-13 22:18:28    阅读次数:138
黑马程序员——生成随机数
iOS培训,iOS学习---------型技术博客、期待与您交流!------------ios 有如下三种随机数方法:1.srand((unsigned)time(0)); //不加这句每次产生的随机数不变inti = rand() %5;2.srandom(time(0));inti = ran...
分类:其他好文   时间:2015-04-13 20:38:15    阅读次数:102
LeetCode—Reverse Bits ,1 Bit和数字的二进制情况相关
https://leetcode.com/problems/reverse-bits/ Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), ret...
分类:其他好文   时间:2015-04-13 00:26:40    阅读次数:143
[LeetCode]191.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).For example, the 32-bit integer ’11’ has binary representation 00000000000...
分类:其他好文   时间:2015-04-12 21:12:01    阅读次数:130
C语言中的数据类型
基本数据类型: int float double char void派生数据类型:数据类型修饰符 + 基本数据类型 = 派生数据类型signed 和 unsigned 类型 unsigned 正数的取值范围是原来的两倍 修饰符可以与 int 和 float 数据类型一起使用 uns...
分类:编程语言   时间:2015-04-12 17:42:31    阅读次数:107
linux下64位汇编的系统调用(3)
背景知识基本交代清楚了,下面我们实际写一个小例子看一下。代码的功能很简单,显示一行文本,然后退出。我们使用了syscall中的write和exit调用,查一下前面的调用号和参数,我们初步总结如下:write(即sys_write)调用号为1,需传递3个参数unsigned int fd const char *buf size_t countexit(sys_exit)调用号为60,只需传递一个错误...
分类:系统相关   时间:2015-04-12 10:41:21    阅读次数:395
USB摄像头之130w像素 OV9655配置,ov9650,ov7725,ov7670
USB摄像头之130w像素 OV9655配置为了usb2.0采集达到足够的速率,不得不将采用raw格式输出。// 20150411 XVGA 1280*1024 实际上位机需要2560*1024 采集 code unsigned char ov9655_sxga[150][2] = { //12.....
分类:其他好文   时间:2015-04-11 19:08:52    阅读次数:841
结果集中获取记录的4种方法
先使用SQL创建表,并向表中插入数据 create table contactInfo(     uid mediumint(8)     unsigned NOT NULL AUTO_INCREMENT,    #联系人ID     name varchar(50) NOT NULL,        #姓名          deparmentId char(3) NOT...
分类:其他好文   时间:2015-04-11 08:57:51    阅读次数:168
驱动相关的内核代码分析
arch\arm\include\asm\Io.h#define __raw_readl(a) (__chk_io_ptr(a), *(volatile unsigned int __force *)(a))#define __raw_writel(v,a) (__chk_io_ptr(a), *....
分类:其他好文   时间:2015-04-10 23:55:21    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!