码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
整数与字符串之间的转换函数
1.将无符号长整数value转换成字符串并返回该字符串,radix为转换时所用基数 char *ultoa(unsigned long value, char *string, int radix); 2.将长整数value转换成字符串并返回该字符串,radix为转换时所用基数 char *ltoa... ...
分类:其他好文   时间:2016-05-08 23:55:51    阅读次数:173
20150413--ThinkPHP3.2.1--商城开发-02
三、完成属性管理 1、属性的添加 了解属性的类型。单选属性 唯一属性 复选属性 了解 在添加商品的时候,属性值的输入方式,列表选择和手工输入 create table it_attribute( id tinyint unsigned primary key auto_increment, type... ...
分类:Web程序   时间:2016-05-08 23:54:54    阅读次数:338
内存管理---内存释放
Linux内存释放函数之间的调用关系如下图所示           hi /*用虚拟地址进行释放*/ void free_pages(unsigned long addr, unsigned int order) { if (addr != 0) { VM_BUG_ON(!virt_addr_valid((void *)addr)); __free_pages(virt...
分类:其他好文   时间:2016-05-08 01:19:38    阅读次数:322
#include <time.h>
#include<time.h> srand srand函数是随机数发生器的初始化函数。原型:void srand(unsigned int seed); srand和rand()配合使用产生伪随机数序列。rand函数在产生随机数前,需要系统提供的生成伪随机数序列的种子,rand根据这个种子的值产生 ...
分类:其他好文   时间:2016-05-08 01:03:19    阅读次数:208
CRC32校验C实现
#include #include #include /*static*/ unsigned long Crc32_ComputeBuf( unsigned long inCrc32, const void *buf,                                       int bufLen);   // size_t bufLen ); int ...
分类:其他好文   时间:2016-05-07 10:34:04    阅读次数:229
完整的哲学家进食代码
//#include "stdafx.h" #include //HADNDLE #include //#include //time(0) //#include #include "iostream" using namespace std; const unsigned int N=2; //哲学家数目 const int THINKING=1; //标记当前哲学...
分类:其他好文   时间:2016-05-07 10:29:07    阅读次数:286
C++11 之 nullptr
C++11 中, nullptr 是空指针,可用来给 (指向任意对象类型的) 指针进行赋值 广义整型 (integral types) = char, short, int, long, long longnd and their unsigned counterparts, and bool, w ...
分类:编程语言   时间:2016-05-04 22:52:08    阅读次数:252
大数阶乘
1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 using namespace std; 5 unsigned short s[20000];//最多可以容纳5000阶乘;且必须为int型,当为short型时,数组元 ...
分类:其他好文   时间:2016-05-04 19:10:20    阅读次数:159
CLRS:Max_sunsequence_sum
#include<stdio.h>#include<stdlib.h>#include<time.h>#define ARRAY_SIZE 1000int buf [ARRAY_SIZE];int main(){ srand((unsigned int )time(0)); int i,j,n; w ...
分类:其他好文   时间:2016-05-04 19:02:07    阅读次数:123
CLRS:Insert sort in in c
#include<stdio.h>#include<string.h>#include<stdlib.h>#include<time.h>#define ARRAY_SIZE 1000int buf[ARRAY_SIZE];int main(){ int i,j,n; srand((unsigned ...
分类:其他好文   时间:2016-05-03 21:53:08    阅读次数:165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!