Description
Ouroboros is a mythical snake from ancient Egypt. It has its tail in its mouth and continously devours itself.
The Ouroboros numbers are binary numbers of 2^n bits that have the prop...
分类:
其他好文 时间:
2014-08-09 11:40:57
阅读次数:
315
数据类型 类型 bits/byte 范围 默认值 byte 8/1 -128 +127 0 short 16/2 -32,768+32,767 0 int 32/4 -2,147,483,648 = -231+2,147,483,647 = 231-1 0 long 64/8 -9,223,372,...
分类:
编程语言 时间:
2014-08-09 02:32:07
阅读次数:
243
#include
#include
#include
/*
有符号 结构体1
*/
struct bits
{
int b1:5;
/*
因为是int型,最大设置32位,由于int型是有符号整形,
所以这里5位为有符号类型。
11111 -1
10000 -16
01111 15
00000 0
*/
int :2;
int b2:2;
/*
11 -1
10 -2
01 1
0...
分类:
其他好文 时间:
2014-08-05 11:20:09
阅读次数:
205
在使用串口调试助手时发送和接收数据都是以字节 (Byte) 为单位,并且可以选择字符、十六进制、二进制三种收发格式 ,那么这三种格式究竟怎样区分呢?
首先我们来明确一个概念 :串口收发数据的单位 '' 字节 (Byte) '' , 1Byte = 8 bits , 串口收发数据格式一般为 1bit起始位(一般为0) + 8bits 数据位(一字节) +1bit校验位(可有...
分类:
其他好文 时间:
2014-08-02 12:54:23
阅读次数:
1238
好在原来做题的思路不知道何时就养成了这种思路...
分类:
其他好文 时间:
2014-08-01 16:11:51
阅读次数:
158
Multi-processor systems are often implemented using a common system bus as the communication mechanism between CPU, memory, and I/O adapters. It is al...
分类:
其他好文 时间:
2014-07-31 02:17:25
阅读次数:
432
Description An IPv6-address is a 128-bit number. For convenience, this number is recorded in blocks of 16 bits in hexadecimal record, the blocks ar...
分类:
其他好文 时间:
2014-07-29 12:15:46
阅读次数:
289
1: semantics 语义一:Introduction 1. Changes form IPv6 to IPv6. 1) Expanded Addressing Capabilities 32 bits to 128 bits to support a) more l...
分类:
其他好文 时间:
2014-07-28 14:56:23
阅读次数:
253
Restoring IPv6DescriptionAn IPv6-address is a 128-bit number. For convenience, this number is recorded in blocks of 16 bits in hexadecimal record, the...
分类:
其他好文 时间:
2014-07-27 22:53:39
阅读次数:
301
题目:输入一个整数,输出该数二进制表示中1的个数。// 二进制中1的个数#include int wrong_count_1_bits(int n) // 错误解法: 当n为负数时, n>>=1右移, 最高位补1, 陷入死循环{ int count = 0; while(n) { ...
分类:
其他好文 时间:
2014-07-24 22:33:42
阅读次数:
221