Vb.net INT和INT-当我在两个变量之间使用和时,它在做什么?
这样做的目的是什么?在两个变量之间?这些价值观为什么会变成现在的样子 以前从未遇到过这种情况。它所说的是Vb.net INT和INT-当我在两个变量之间使用和时,它在做什么?,vb.net,Vb.net,这样做的目的是什么?在两个变量之间?这些价值观为什么会变成现在的样子 以前从未遇到过这种情况。它所说的是 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
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
请注意,如果两个数字中的对应位均为1,则结果仅为1 将Option Strict放在文件顶部以获取详细信息。布尔到整数的转换会让你大吃一惊。我想你的意思是,如果两个数字中对应的位都是1,那么结果就是1。
0100 0100 0100 0100
0001 0010 0011 0100
---- ---- ---- ----
0000 0000 0000 0100
0100
0101
----
0100