码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
创建外键表时同一个数据库中外键的名字不能用同一个
create table day_news( id smallint unsigned auto_increment, title varchar(50), content text, author varchar(200), num int unsigned default 0, ntime in...
分类:数据库   时间:2015-06-28 18:49:15    阅读次数:323
【驱动】——字符设备驱动程序
字符设备不得不说的那些事:一: 设备号:主设备号,次设备号: 数据类型 dev_t(unsigned int) 定义设备号 高12位主设备号 低20位次设备号;二: 设备号的作用: 应用程序通过主设备号找到驱动程序;三:如何分配设备号: ①:静态分配: 1: cat /proc/devi...
分类:其他好文   时间:2015-06-28 18:47:39    阅读次数:185
修改yv12像素值
YV12内存布局 1 unsigned char *pY = (unsigned char *)pBuf; 2 unsigned char *pV = pY + nWidth * nHeight; 3 unsigned char *pU = pV + (nWidth>>1)*(nHeight>>1)...
分类:其他好文   时间:2015-06-28 11:09:47    阅读次数:119
C++和C#数据类型转换(常用)
C++C#HANDLE(void *)System.IntPtrByte(unsigned char)System.ByteSHORT(short)System.Int16WORD(unsigned short)System.Int16INT(int)System.Int16System.Int32...
分类:编程语言   时间:2015-06-28 00:01:38    阅读次数:469
C语言qsort
C/C++中有一个快速排序的标准库函数 qsort ,在stdlib.h 中声明,其原型为:void qsort(void *base, int nelem, unsigned int width, int ( * pfCompare)( const void *, const void *)); ...
分类:编程语言   时间:2015-06-27 22:32:42    阅读次数:172
C/C++ 有符号数和无符号数
在开始话题前,不妨先来看看以下这段代码 1 #include 2 #include 3 4 int main() { 5 int a = -1; 6 unsigned int b = 1; 7 std::cout b is " b) << std::endl; ...
分类:编程语言   时间:2015-06-27 19:51:31    阅读次数:221
编程实现两个字符串是否相等strcmp
//这是系统库的实现 int strcmp(const char* src, const char* dest) { int rtn = 0; while(!(rtn = *(unsigned char*)src - *(unsigned char*)dest) && *dest) { ++src; ++dest; } if (rtn < 0) { rtn = -1; ...
分类:其他好文   时间:2015-06-27 11:39:48    阅读次数:108
[Leetcode]-Reverse Bits
Reverse bits of a given 32 bits unsigned integer. 将uint数据按照二进制位倒序 For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binar...
分类:其他好文   时间:2015-06-26 15:05:59    阅读次数:170
[Leetcode]-Number of 1 Bits
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 represent...
分类:其他好文   时间:2015-06-26 12:54:20    阅读次数:104
输入和输出移位寄存器的同步串行模式
输入和输出移位寄存器的同步串行模式输出口。数据有RXD(P3.0)引脚输入或输出。同步移位脉冲由TXD(P3.1)引脚输出。发送和接受均为8位数据。低位在前,高位在后。//串行口工作模式0#include #define uchar unsigned char#define uint unsigne...
分类:其他好文   时间:2015-06-26 10:52:31    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!