From 6f86054fb618fc38b631c8d6f6cc49b9fe1fa7c4 Mon Sep 17 00:00:00 2001 From: flykhan Date: Mon, 19 Jun 2023 15:25:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=96=E5=8F=8D=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E6=8A=80=E5=B7=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- day6/d7.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/day6/d7.cpp b/day6/d7.cpp index 4abc219..af07074 100644 --- a/day6/d7.cpp +++ b/day6/d7.cpp @@ -1,3 +1,9 @@ +/* + 按位取反时,如果是有符号的,包含符号位。 + 将0取为1, 将1取为0 + 【小技巧】数据的取反,先加1,再反符号反值。 + 如: -9的按位取反的结果: 8, 10的按位取反的结果: -11、、 + */ #include using namespace std;