码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
4线程同步:信号量
1 信号量 信号量可以有n把锁。 依赖的头文件 #include 函数声明 sem_t 表示信号量   int sem_init(sem_t *sem, int pshared,unsigned int value); 名称: sem_init 功能: ...
分类:编程语言   时间:2014-09-25 19:49:37    阅读次数:323
中文输入程序
ChineseInput.c #include #include #include "PY_Index.h" unsigned char * search_Chinese(char *buf) { static char str[50]={""}; int i=0; strcpy(str,"PY_mb_"); strcat(str,buf); for(i=...
分类:其他好文   时间:2014-09-25 18:50:37    阅读次数:812
malloc函数详解
一、原型:extern void *malloc(unsigned int num_bytes);头文件:#include 或 #include (注意:alloc.h 与 malloc.h 的内容是完全一致的。)功能:分配长度为num_bytes字节的内存块说明:如果分配成功则返回指向被分配内.....
分类:其他好文   时间:2014-09-25 09:37:18    阅读次数:183
C 小复习
C语言 signed 与 unsigned: C语言中,当表达式中存在有符号类型和无符号类型时所有的操作数都自动转换为无符号类型signed int a = -110;unsigned int b = 2;cout << a + b << endl; 浮点数来说,浮点数(float,double.....
分类:其他好文   时间:2014-09-25 01:37:08    阅读次数:221
mysql建立表及表的简单操作-插入数据-删除主键-删除表-修改表的数据-删除表的数据
-- 1.使用数据库 USE ren; -- 2.建立student表 CREATE TABLE student (     sid INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,   -- UNSIGNED(无符号) AUTO_INCREMENT(自增)     sname VARCHAR(10),    -- 只能保存10个字符     ...
分类:数据库   时间:2014-09-24 23:45:58    阅读次数:344
反转一个整数(259----952)
#include #include //注意这种实现方法,unsigned Reverse( unsigned a ){ unsigned b = 0; for( ; a; a/=10 ) { b = b*10 + a%10; } return b;}int main(void){int a = 2...
分类:其他好文   时间:2014-09-24 18:36:07    阅读次数:153
大端 小端
大端法:高位字节排放在内存低地址端,低位字节排放在内存的高地址端。小端法:低位字节排放在内存的低地址端,高位字节排放在内存的高地址端。看一个unsigned short 数据,它占2个字节,给它赋值0x1234。若采用的大端法,则其低地址端应该存放的是0x12;若采用的小端法,则其低地址端应该存放的...
分类:其他好文   时间:2014-09-23 21:31:45    阅读次数:270
malloc函数具体解释
一、原型:extern void *malloc(unsigned int num_bytes);头文件:#include 或 #include (注意:alloc.h 与 malloc.h 的内容是全然一致的。)功能:分配长度为num_bytes字节的内存块说明:假设分配成功则返回指向被分配内.....
分类:其他好文   时间:2014-09-23 20:48:45    阅读次数:195
C puzzles详解【13-15题】
第十三题 int CountBits(unsigned int x) { int count=0; while(x) { count++; x = x&(x-1); } return count; }知识点讲...
分类:其他好文   时间:2014-09-23 09:51:24    阅读次数:202
poj1006 ( hdu1370 ):中国剩余定理裸题
裸题,没什么好说的第一个中国剩余定理写暴力都过了。。可见这题有多水代码:#include#include#include#include#include#includeusing namespace std;#define MAX 200000000#define ull unsigned long...
分类:其他好文   时间:2014-09-22 22:36:53    阅读次数:445
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!