#define _CRT_SECURE_NO_WARNINGS 1
#include
//~ 按位取反
int main()
{
int b = -3;
int c = ~b;
printf("%dn", c);
return 0;
}
//正数的原码、反码、补码相同
/服务器托管网/^按位异或,相同为0,不同为1
//3
//00000000000000000000000000000011 二进制补码
//11111111111111111111111111111100 取反
//10000000000000000000000000000011 反码
//10000000000000000000000000000100 补码
//-3
//10000000000000000000000000000011 二进制数
//11111111111111111111111111111100 反码
//11111111111111111111111111111101 补码
//00000000000000000000000000000010 取反
//9
//00000000000000000000000000001001 转二进制–补码
//11111111111111111111111111110110 取反
//10000000000000000000000000001001 反码
//10000000000000000000000000001010 补码
//5
//00000000000000000000000000000101 二进制补码
//11111111111111111111111111111010 取反
//10000000000000000000000000000101 反码
//10000000000000000000000000000110 补码
//-2
//10000000000000000000000000000010 二进制数
//11111111111111111111111111111101 反码
//11111111111111111111111111111110 补码
//00000000000000000000000000000001 取反
//-4
//10000000000000000000000000000100 二进制数
//11111111111111111111111111111011 反码
//11111111111111111111111111111100 补码
//00000000000000000000000000000011 取反
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net服务器托管网
机房租用,北京机房租用,IDC机房托管, http://www.fwqtg.net
相关推荐: Docker使用及本地Yolov5打包教程1. Docker的安装2. Docker的相关指令学习3. 案例-打包本地修改好的Yolov5包
1. Docker的安装 注意:官方也提供了直接Pull Yolov5的渠道: docker pull ultralytics/yolov5 详见:https://hub.docker.com/r/ultralytics/yolov5 ————…