码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果
C++ 随机数的生成
此文件是随机生成10个0~100的数 #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { int i,j; srand((unsigned)time(NULL)); //生 ...
分类:编程语言   时间:2020-01-10 12:21:26    阅读次数:68
Gnutella Chessmaster
"题目" 这是一个不需要推式子的清真做法。 首先我们把棋盘黑白染色,得到两个新的棋盘,然后分别在两个棋盘上算方案数$r,R$再卷起来就好了。 观察可得棋盘$B_1=(1,1,3,3,\cdots),B_2=(2,2,4,4,\cdots)$,行数分别为$n,n 1$。 对于$B_1$运用Goldma ...
分类:其他好文   时间:2020-01-08 23:01:05    阅读次数:112
Linux CPU使用率获取 c
Linux CPU使用率获取 C #include <stdio.h> #include <unistd.h> #include <string.h> typedef struct CPU_PACKED { char name[20]; unsigned int user; unsigned int ...
分类:系统相关   时间:2020-01-08 14:40:27    阅读次数:84
learning yaffs2 filesystem notes
参数inband_tags就表示tags存放的位置,tags的大小为16字节,其定义如下所示。 struct yaffs_packed_tags2_tags_only { unsigned seq_number; unsigned obj_id; unsigned chunk_id; unsigne ...
分类:其他好文   时间:2020-01-07 17:59:37    阅读次数:77
创建数据库中的表的操作
1.显示当前数据库中的表 show tables; 2.创建表的操作 create table classes( id int unsigned primary key auto_increment, name varchar(10) not null ); 大致的结构: create table ...
分类:数据库   时间:2020-01-07 15:58:32    阅读次数:137
C语言的数据类型——整数类型和浮点类型
基本数据类型分为 和`浮点类型 有符号整型 无符号整型`。 1.整数类型 有符号整型 short int int long int long long int char(使用整数存储字符) 无符号整型 unsigned short int unsigned int unsigned long int ...
分类:编程语言   时间:2020-01-07 15:55:32    阅读次数:153
MySQL两表索引优化
建表语句 sql CREATE TABLE IF NOT EXISTS ( INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, INT(10) UNSIGNED NOT NULL, PRIMARY KEY( ) ); CREATE TABLE IF NOT EXIST ...
分类:数据库   时间:2020-01-07 13:06:29    阅读次数:80
STM32 MDK C 常见易错点
1、MDK编译器单字节的负数-1,-2,-3... ... 处理:存储,类型转换,位对齐。 char 定义的变量在运算过程尤其类型转换,逻辑比大少会被当做 unsigned char 处理,这里很容易出错,为了避免这类错误发生,单字节有符号变量最好显式的声明 signed char char var ...
分类:其他好文   时间:2020-01-06 14:20:35    阅读次数:81
[LeetCode] 190. Reverse Bits
颠倒二进制位。题意是给一个数字,请你将其二进制的表达反转过来。例子, Input: 00000010100101000001111010011100 Output: 00111001011110000010100101000000 Explanation: The input binary stri ...
分类:其他好文   时间:2020-01-06 09:29:50    阅读次数:71
HDU1880 魔咒词典
题目大意:对应的输入多行,每行两个字符串,两个字符串互相映射。接下来询问的时候,如果这个字符串出现过,输出其对应的字符串。 分析:二重哈希来判断字符串是否存在,输出其对应的字符串就行。二重哈希的入门题,字符串还挺有意思的。 代码: #include<iostream> #include<string ...
分类:其他好文   时间:2020-01-05 19:03:09    阅读次数:101
4409条   上一页 1 ... 35 36 37 38 39 ... 441 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!