码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
mysql 根据英文首字母来查询汉字函数
mysql> create table t_cosler( -> f_PY char primary key, -> cBegin SMALLINT UNSIGNED not null, -> cEnd SMALLINT UNSIGNED not null ->...
分类:数据库   时间:2014-10-13 23:07:17    阅读次数:337
YUV 和RGB之间转换函数
void myRgb2YUV(int width, int height, ?unsigned char *yuv, unsigned char *rgb) { for(int i=0;i<width;++i) { for(int j=0;j<height;++j) { int B=rgb[j*width*3+i*3]; int G=rgb[j*width*3+i*3+1]; int R=...
分类:其他好文   时间:2014-10-13 15:01:01    阅读次数:188
百度笔试(2014年10.12.14:00)
算法描述和复杂度分析 发牌程序 c与c++分别是怎样动态分配和释放内存的,有什么区别? c语言提供内存动态分配的函数有:malloc、calloc、realloc,在使用这些函数时必须包含其头文件,分别为:、、     1) malloc 函数: void *malloc(unsigned int size)      在内存的动态分配区域中分配一个长度为size的连续空间,如果分配成功...
分类:其他好文   时间:2014-10-13 11:01:14    阅读次数:214
struct dirent/DIR
#include struct dirent { long d_ino;//inode number索引节点号 off_t d_off;//offset to this dirent 在目录文件中的偏移 unsigned short d_reclen;//length of this d_na...
分类:其他好文   时间:2014-10-13 00:45:08    阅读次数:239
rand
标准库(被包含于中)提供两个帮助生成伪随机数的函数:函数一:int rand(void);从srand (seed)中指定的seed开始,返回一个[seed, RAND_MAX(0x7fff))间的随机整数。函数二:void srand(unsigned seed);参数seed是rand()的种子...
分类:其他好文   时间:2014-10-11 20:48:56    阅读次数:195
VC 整人程序 修改分区表
整人代码,定时检测所有可移动磁盘,若有,修改MBR。下次插入时可使无法读取分区~解决方案是用DiskGenuis等软件恢复MBR。可以自定义时间段~别整太过……有一个缺点,就是U盘被改之后,下一次程序扫描时发现这个设备还会修改MBR.#include #include #include #include unsigned int g_TimeList[][2] = {1,...
分类:其他好文   时间:2014-10-11 16:00:25    阅读次数:167
Condition Codes
CF:Carry Flag.The most recent operation generated a carry out of the most significant bit.Used to detect overflow for unsigned operations.ZF:Zero Flag...
分类:其他好文   时间:2014-10-11 11:28:15    阅读次数:158
一个关于动态多维数组的问题
同样的错误,即使你年龄再大,也一样会犯,Opps............ 最近在做C#和C++的混合编程。昨天搞了堆栈平衡搞了好久,今天又解决了一个BUG,既开心又难过。 先看代码: unsigned char*** bytes2D=(unsigned char***)bytesArray; for(int i=0;i { for(int j=0;j { tmp=byt...
分类:编程语言   时间:2014-10-10 17:53:34    阅读次数:162
crc16.c
static unsigned char auchCRCHi[];static unsigned char auchCRCLo[];/* CRC 高位字节值表 */static unsigned char auchCRCHi[] = { 0x00, 0xC1, 0x81, 0x40, 0x01, ....
分类:其他好文   时间:2014-10-10 02:12:43    阅读次数:228
c++ 读取位图信息显示位图 BITMAPINFOHEADER
在C++中要将一张位图信息读取并显示在一个控件上,具体步骤如下: 1.先读取位图信息 int ReadPictureBmp(unsigned char *pBmpBuffer) { // static int i=0; // if (i>5) // { // return TRUE;  // } FILE *fp = NULL; char szFileName[...
分类:编程语言   时间:2014-10-09 20:54:07    阅读次数:525
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!