#include<reg52.h>//包含51单片机内部寄存器头文件 #define uchar unsigned char // 自定义uchar为unsigned char(即无符号字符型数据,数据范围:0到255。) #define uint unsigned int//自定义uint为uns ...
分类:
其他好文 时间:
2020-05-14 19:14:21
阅读次数:
63
学FreeRTOS时,每次打开函数列表都一脸懵逼?根本不知道这什么prv,v,ux是什么意思,所以还是要把它理清一下: 命名规则 u :代表unsigned。 s :代表short。 c :char。 所以类似uc,us类的变量就是unsigned char,unsigned short,分别对应u ...
分类:
其他好文 时间:
2020-05-12 13:42:19
阅读次数:
130
题目:传送门 题意 思路 对于 k <= n - 1 的情况,我们可以将全部的牌隔一个位存起来,也就是起初的时候,第 i 张牌,放在 b[ 2 * i - 1 ] 的位置。每次操作将第 i 张牌放到第 (i - 1) % (n - 1) + 2 = i + 1 的位置的下一位,即放到 b[ 2 * ...
分类:
其他好文 时间:
2020-05-12 11:22:22
阅读次数:
86
C++通过一组协作的类来产生随机数。随机数引擎类可以生成unsigned随机数序列,随机数分布类可以生成服从特定概率分布的随机数。 ...
分类:
编程语言 时间:
2020-05-12 09:47:03
阅读次数:
58
mysql中的数据类型: 数字 默认是有符号的 使用unsigned变为无符号。 tinyint 1个字节(-128,127)(0,255) int 4个字节 float(255,30) 小数点后面保留30位,总共有255位 例如float(5,2)总共有五位,小数点后面2位,234.32 floa ...
分类:
数据库 时间:
2020-05-11 23:54:32
阅读次数:
86
题目 实现函数double Power(double base, int exponent),求base的exponent次方。不得使用库函数,同时不需要考虑大数问题。 示例 1: 示例?2: 示例?3: 说明: 100.0 1); res = res; if (n & 0x1 == 1) res ...
分类:
其他好文 时间:
2020-05-10 23:03:56
阅读次数:
74
//csapp 2.63, 还原算数右移,逻辑右移 include unsigned srl(unsigned x, int k) { / Perform shift arithmetically / unsigned xsra = (int) x k; //begin this //此处由于转换成 ...
分类:
其他好文 时间:
2020-05-10 23:01:10
阅读次数:
57
//csapp 2.62 include //算数右移返回1,否则返回0 int int_shifts_are_arithmetic() { //return !~( 1 1); unsigned int w = sizeof(int) (w 1)); } int main(void) { prin ...
分类:
其他好文 时间:
2020-05-10 21:22:07
阅读次数:
61
--查询基本使用(条件,排序,聚合函数,分组,分页)--创建学生表create table students ( id int unsigned not null auto_increment primary key, name varchar(20) default '', age tinyint ...
分类:
数据库 时间:
2020-05-10 17:32:50
阅读次数:
107
连接查询 --创建学生表create table students (id int unsigned not null auto_increment primary key,name varchar(20) default '',age tinyint unsigned default 0,high ...
分类:
其他好文 时间:
2020-05-10 16:40:04
阅读次数:
66