码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
【leetcode】Sqrt(x)
Implement int sqrt(int x).Compute and return the square root of x. 1 class Solution { 2 public: 3 int mySqrt(int x) { 4 unsigned long long...
分类:其他好文   时间:2015-05-29 20:05:20    阅读次数:114
TEST_INCREMENT
CREATE TABLE TEST_INCREMENT(—- UNSIGNED:将数字类型无符号化,扩大整形数值的范围ID BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT primary key,TEST_NAME...
分类:其他好文   时间:2015-05-29 13:35:37    阅读次数:108
步进电机的单片机控制程序---单片机
1.4相8拍-步进电机的控制程序,正传或者反转都转一周即停止#include //51芯片管脚定义头文件#include //内部包含延时函数 _nop_();#define uchar unsigned char#define uint unsigned intuchar...
分类:其他好文   时间:2015-05-28 19:43:19    阅读次数:152
char与unsigned char本质区别
char 与 unsigned char的本质区别 在C中,默认的基础数据类型均为signed,现在我们以char为例,说明(signed) char与unsigned char之间的区别。 首先在内存中,char与unsigned char没有什么不同,都是一个字节,唯一的区别是,char...
分类:其他好文   时间:2015-05-28 12:18:22    阅读次数:121
九度oj 1348 数组中的逆序对
原题链接:http://ac.jobdu.com/problem.php?pid=1348归并排序求逆序对。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 typedef unsigned long long ull; 7 co...
分类:编程语言   时间:2015-05-27 22:29:53    阅读次数:233
sicily 1214
题目链接:sicily 1214解题思路: 首先我觉得这是一道很好而且比较难的题,难度在于找规律 题目告诉我们,n是一个很大的数(刚好在unsigned的范围内),这样的话,直接模拟是必然超时的,所以,我们需要根据题目的三条公式来推导a[n]。 这个规律我找了很久也没能找到,最后直接拿来用的,怎么想得到的我也不懂。规律如下:如果n的二进制形式满足回文序列的形式,那么a[n]=n。 得到这个规...
分类:其他好文   时间:2015-05-27 15:56:00    阅读次数:121
#define与typedef定义的类型名的区别
1、可以用其他类型说明符对#define定义的类型名进行扩展,但对typedef所定义的类型名不能这样做。 例如: #define peach int unsigned peach i; //加上unsigned类型说明符,正确! typedef int banana; unsigned...
分类:其他好文   时间:2015-05-27 06:16:12    阅读次数:87
c++ primer plus 习题答案(7)
p427.4 1 //头文件: 2 #include 3 #ifndef STACK_H_ 4 #define STACK_H_ 5 typedef unsigned long Item; 6 7 class Stack{ 8 private: 9 enum{MAX=10...
分类:编程语言   时间:2015-05-26 18:09:10    阅读次数:140
diamond 安装
diamond 安装 1:创建diamond使用的表 ?CREATE TABLE `config_info` ( ?? `id` bigint(64) unsigned NOT NULL auto_increment, ?? `data_id` varchar(255) NOT NULL default ‘‘, ?? `group_id` varchar(128...
分类:其他好文   时间:2015-05-26 12:53:12    阅读次数:109
x264_param_t结构
typedef struct x264_param_t { unsigned int cpu; // CPU 标志位 int i_threads; // 并行编码多帧; 线程数,为0则自动多线程编码 int b_sliced_threads; // 如果为false,则一个slice只编码成一个NA...
分类:其他好文   时间:2015-05-25 16:28:44    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!