0
Dim aTest As Int64 = 4 And 1 = 0
Dim aTest As Int64 = 4 And 2 = 0
Dim aTest As Int64 = 4 And 3 = 0
Dim aTest As Int64 = 4 And 4 = 4
Dim aTest As Int64 = 4 And 5 = 4
Dim aTest As Int64 = 4 And 6 = 4

在这样的两个变量之间做 AND 的目的是什么?这些价值观怎么会变成现在的样子?

以前从未遇到过这种情况。

4

1 回答 1

1

它在说什么

0100     0100    0100    0100
0001     0010    0011    0100
----     ----    ----    ----
0000     0000    0000    0100


0100
0101
----
0100

请注意,如果两个数字中的对应位均为 1,则结果仅为 1。

于 2013-11-12T18:52:51.437 回答