码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
对MSP430单片机__delay_cycles精确延时的说明及改正
在这里, 我来讨论一下关于MSP430单片机使用__delay_cycles延时的问题. IAR for MSP430编译器提供了一个编译器内联的精确延时函数(并非真正的函数)以提供用户精确延时使用, 该函数原型是: __intrinsic void __delay_cycles(unsigned ...
分类:其他好文   时间:2016-07-31 17:25:23    阅读次数:337
CHAR,TCHAR,WCHAR 三者的区别与转换
#ifdef UNICODE typedef wchar_t TCHAR; #else typedef unsigned char TCHAR; #endif typedef unsigned char CHAR; typedef unsigned wchar_t WCHAR; 由此可以看出,CHA ...
分类:其他好文   时间:2016-07-31 11:35:11    阅读次数:182
Leetcode 190. Reverse Bits
190. Reverse Bits Total Accepted: 71291 Total Submissions: 242226 Difficulty: Easy Reverse bits of a given 32 bits unsigned integer. For example, give ...
分类:其他好文   时间:2016-07-30 18:11:34    阅读次数:202
Leetcode 191. Number of 1 Bits
191. Number of 1 Bits 191. Number of 1 Bits Total Accepted: 103908 Total Submissions: 275693 Difficulty: Easy Write a function that takes an unsigned ...
分类:其他好文   时间:2016-07-30 11:51:08    阅读次数:146
UVA10018 Reverse and Add
问题链接:UVA10018 Reverse and Add。基础训练题,用C语言编写程序。 题意:输入测试用例数n,然后输入n个正整数,加上其逆序的整数,如果和不是回文数则对和求逆序整数与和相加,直到变为回文整数为止,最少做一次加法,最后输出加法次数和回文数。 AC的C语言程序如下: /* UVA10018 Reverse and Add */ #include unsigned in...
分类:其他好文   时间:2016-07-29 22:59:43    阅读次数:192
SPOJ CPCRC1C Sum of Digits
题目连接 题意:计算从a到b每个数每位数字相加的和 code: #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> using namespace std; typedef unsigned long ...
分类:其他好文   时间:2016-07-22 22:51:43    阅读次数:148
190. Reverse Bits
知识点 1. java中int和binary之间互相转换的自带函数 2. int的最大值是231-1,用二进制表示就是有31个1,int有32位,第一位是表示符号,java中没有unsigned int,如果有的话是32位 这题用string的方法做是: 不用考虑溢出的情况,因为unsigned i ...
分类:其他好文   时间:2016-07-21 06:27:01    阅读次数:289
商品扩展分类与商品
商品扩展分类与商品 建表 drop table if exists p40_goods_cat;create table p40_goods_cat( cat_id mediumint unsigned not null comment '分类Id', goods_id mediumint unsi ...
分类:其他好文   时间:2016-07-20 14:55:26    阅读次数:163
商品的分类
drop table if exists p40_category;create table p40_category( id mediumint unsigned not null auto_increment comment 'Id', cat_name varchar(30) not null ...
分类:其他好文   时间:2016-07-19 23:35:51    阅读次数:199
misc: 2's complement, signed / unsigned number,carry flags, and overflow flags
学习汇编的过程中,一个很容易搞混的概念就是有符号数和无符号数的运算。 一个很自然的问题是,当对两个数做运算时(比如加法、减法),运算操作会因为两个符号有所不同吗?比如,我们都知道,在汇编里面,将两个数相加和相减,是这样的: 那么,这两个操作会因为有符号数、无符号数的差别而有不同吗?是不是有有符号的  ...
分类:其他好文   时间:2016-07-19 20:51:16    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!