码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
【编程之美】2.1 二进制数中1的个数
这个已经看过几遍了,列一下各种解法。#include //n&(n-1) 每次消去最低位的1//算法复杂度与2进制中1的个数有关int numOfOne(unsigned int n){ int num = 0; for(;n; n = n & (n - 1), num++); r...
分类:其他好文   时间:2014-10-31 09:59:22    阅读次数:201
yuv to jpeg
int?write_JPEG_file?(char?*?filename,?unsigned?char*?yuvData,?int?quality,int?image_width,int?image_height) { ?????struct?jpeg_compress_struct?cinfo; ? ?????struct?jpeg_er...
分类:其他好文   时间:2014-10-30 21:06:50    阅读次数:252
char与unsigned char 差别
char 与 unsigned char的本质差别http://bbs.csdn.net/topics/270080484同一个内存内容:10010000你用char*解释是-112你用unsignedchar*解释是144还是相同这个内存内容赋给整型值,用unsignedchar类型还是会得到14...
分类:其他好文   时间:2014-10-30 18:29:36    阅读次数:189
年,月,日,时,分,秒
NSDate *now = [NSDate date]; NSCalendar *cal = [NSCalendar currentCalendar]; unsigned int unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSHourCalendarUnit | NSMinuteCalend...
分类:其他好文   时间:2014-10-30 13:36:21    阅读次数:166
poj 3070 矩阵快速幂模板
题意:求fibonacci数列第n项 1 #include "iostream" 2 #include "vector" 3 #include "cstring" 4 using namespace std; 5 6 typedef unsigned long int ULL; 7 typedef....
分类:其他好文   时间:2014-10-30 13:29:54    阅读次数:246
hdu 1575 矩阵快速幂模板
1 #include "iostream" 2 #include "vector" 3 #include "cstring" 4 using namespace std; 5 6 typedef unsigned long int ULL; 7 typedef vector vec; 8 typ.....
分类:其他好文   时间:2014-10-30 13:21:07    阅读次数:199
mysql利用存储过程批量插入数据
最近需要测试一下mysql单表数据达到1000W条以上时增删改查的性能。由于没有现成的数据,因此自己构造,本文只是实例,以及简单的介绍。 首先当然是建表: CREATE TABLE `fortest` (   `ID` INT(30) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,   `IP` VARCHAR(32) NOT NULL,   ...
分类:数据库   时间:2014-10-30 11:40:33    阅读次数:271
c 语言声明
声明修饰: 类型说明符:void char short int long signed unsigned float double 结构说明符(struct)枚举说明符(enum)联合说明符(union) 存储类型:auto ?extern ?static register? typedef 类型限定符...
分类:编程语言   时间:2014-10-30 02:13:19    阅读次数:236
JSON解析和XML解析
一、 XML:用到一个开源解析类,GDataXMLNode(将其加入项目中),添加libxml2.dylib框架 经常用到的方法: 1.- (id)initWithXMLString:(NSString *)str options:(unsigned int)mask error:(NSErr...
分类:Web程序   时间:2014-10-30 00:02:17    阅读次数:276
OPENCV(2) —— Basic Structures(一)
DataType A primitive OpenCV data type is one of unsigned char, bool,signed char, unsigned short, signed short, int, float, double, or a tuple of value...
分类:其他好文   时间:2014-10-28 21:34:09    阅读次数:369
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!