码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
阶乘和
题目描述求Sn=1!+2!+3!+4!+5!+…+n!之值,其中n是一个数字。输入n输出和样例输入5样例输出153提示必须使用long long int以避免溢出!来源#include int main(){unsigned long long int n,m=1,i=1,Sn=0;scanf("%...
分类:其他好文   时间:2015-01-08 17:46:01    阅读次数:113
live555分析
live555的核心函数是void BasicTaskScheduler::SingleStep(unsigned maxDelayTime): 1 void BasicTaskScheduler::SingleStep(unsigned maxDelayTime) { 2 fd_set r...
分类:其他好文   时间:2015-01-08 17:20:38    阅读次数:459
ADC取样
#include#include "adcproc.h"#include "utils.h"#include "globdefs.h"#define SKIP_SAMPLES 1//ADC采样时忽略样本数#define BYTE unsigned char#define ADC_MUX_I 0x00...
分类:其他好文   时间:2015-01-08 02:08:09    阅读次数:400
1602四线驱动
#include #include #define uchar unsigned char#define LCD_PORT PORTA#define LCD_DDR DDRA#define LCD_PIN PINA#define LCD_DATA ((1>1;/* Cryst...
分类:其他好文   时间:2015-01-08 02:05:16    阅读次数:187
LIBCMTD.lib与libcpmtd冲突的解决方法。
error:1>uafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) 已经在 LIBCMTD.lib(new.obj) 中定义1>uafxcwd.lib(...
分类:其他好文   时间:2015-01-07 23:30:24    阅读次数:228
C++11 lambda表达式基本用法
#include using namespace std; void func1() { cout<<"lambda表达式,值捕获,类似值传递"<<endl; size_t v1=30;//size_t为unsigned int无符号整数 size_t v2=30; size_t v3=30; auto f=[v1,v2,v3]{return v1+v...
分类:编程语言   时间:2015-01-07 00:40:00    阅读次数:146
都是类型惹的祸——小心unsigned
正如我们所知道的,编程语句都有很多的基本数据类型,如char,inf,float等等,而在C和C++中还有一个特殊的类型就是无符号数,它由unsigned修饰,如unsigned int等。大家有没想过,就是因为这些不同的类型,而使大家编写的看似非常正确的程序出现了预想不到的错误呢?一、迷惑人的有符...
分类:其他好文   时间:2015-01-05 21:53:35    阅读次数:214
大大大
1 unsigned a: 2;2 unsigned b: 6;3 unsigned c: 4;4 unsigned d: 4;5 int i;}data;C语言代码
分类:其他好文   时间:2015-01-05 14:43:04    阅读次数:123
信号量工作原理
内核相关文件为include/linux/semaphore.h和kernel/semaphore.c 主要结构体: struct semaphore { raw_spinlock_t lock; unsigned int count; struct list_head wait_list; };...
分类:其他好文   时间:2015-01-03 19:54:19    阅读次数:253
malloc函数具体解释
一、原型:extern void *malloc(unsigned int num_bytes);头文件:#include 或 #include (注意:alloc.h 与 malloc.h 的内容是全然一致的。)功能:分配长度为num_bytes字节的内存块说明:假设分配成功则返回指向被分配内.....
分类:其他好文   时间:2015-01-03 18:32:44    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!