size_t is a defined type (through typedef) which is basically an unsigned long int. Since the idea of a negative value for a size isn't practical some ...
分类:
其他好文 时间:
2020-04-30 09:31:40
阅读次数:
70
C++ vector遍历方法 //C语言版本 vector<int> vec {4, 8, 6, 2, 7}; for(unsigned int i=0; i<vec.size(); i++) cout << vec[i] <<endl; //迭代器版本 for(vector<int>::itera ...
分类:
编程语言 时间:
2020-04-29 21:58:35
阅读次数:
69
7.1.1 value 对象的通用结构 typedef struct redisObject{ unsigned type:4; unsigned encoding:4; unsigned lru:REDIS_LRU_BITS; int refcount; void *ptr; } robj; ty ...
分类:
其他好文 时间:
2020-04-29 01:04:19
阅读次数:
67
一、整数的基本概念整数是我们生活中常用的数据类型,也是编程中常用的一种数据,C语言用int关键字来定义整数变量(int是integer的简写)。在定义变量的时候,可以加signed、unsigned、short和long四种修饰符。signed:有符号的,可以表示正数和负数。unsigned:无符号的,只能表示正数,例如数组的下标、人的身高等。short:短的,现在主流的64位操作系统下,整数占用
分类:
编程语言 时间:
2020-04-28 18:59:26
阅读次数:
128
整数是我们生活中常用的数据类型,也是编程中常用的一种数据,C语言使用int关键字来定义整数变量(int是integer的简写)。在定义变量的时候,可以加signed、unsigned、short和long四种修饰符。signed:有符号的,可以表示正数和负数。unsigned:无符号的,只能表示正数,例如数组的下标、人的身高等。short:短的,现在主流的64位操作系统下,整数占用内存4个字节,使
分类:
编程语言 时间:
2020-04-28 18:57:05
阅读次数:
104
整数是我们生活中常用的数据类型,也是编程中常用的一种数据,C语言用int关键字来定义整数变量(int是integer的简写)。在定义变量的时候,可以加signed、unsigned、short和long四种修饰符。signed:有符号的,可以表示正数和负数。unsigned:无符号的,只能表示正数,例如数组的下标、人的身高等。short:短的,现在主流的64位操作系统下,整数占用内存4个字节,使用
分类:
编程语言 时间:
2020-04-28 18:45:19
阅读次数:
277
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; class BitArray2D { private: int mRow, mCol; unsign ...
分类:
编程语言 时间:
2020-04-26 17:21:35
阅读次数:
75
1 #include"reg52.h"//单片机头文件 2 #define uchar unsigned char//宏定义,用uchar表示unsigned char,叫无符号字符型数据类型,取值范围为:0到255。 3 #define uint unsigned int//宏定义,用uint表示 ...
分类:
其他好文 时间:
2020-04-25 17:11:52
阅读次数:
105
1 #include<reg52.h>//单片机头文件 2 #define uchar unsigned char//宏定义,用uchar表示unsigned char,叫无符号字符型数据类型,取值范围为:0到255。 3 #define uint unsigned int//宏定义,用uint表示 ...
分类:
其他好文 时间:
2020-04-25 10:30:16
阅读次数:
72
网络流二·最大流最小割定理 AC_Code: 1 #include <bits/stdc++.h> 2 #include <ctime> 3 #include <algorithm> 4 #include <random> 5 using namespace std; 6 typedef long ...
分类:
其他好文 时间:
2020-04-25 01:02:59
阅读次数:
73