有人可以分享我1 xor 1的代码将等于一个非常感谢你的回复。 Dim a As Integer = TextBox1.Text Dim b As Integer = TextBox2.Text
Dim firstPattern As Integer
firstPattern = (a Xor b)
Console.WriteLine(firstPattern)
out put是: textbox1 = 1 textbox2 = 10101101 结果是:10101100 我想要的是:10101101
答案 0 :(得分:0)
根据你所说的,你想要Or,而不是Xor。
Dim firstPattern As Integer
firstPattern = (a Or b)
Console.WriteLine(firstPattern)