按位与&用法求助
byte[] output = new byte[bits.Length * 4];for (int i = 0, j = 0; i < bits.Length; i++, j += 4)
{
output[j] = (byte)(bits & 0xff);
output[j + 1] = (byte)((bits >> 8) & 0xff);
output[j + 2] = (byte)((bits >> 16) & 0xff);
output[j + 3] = (byte)((bits >> 24) & 0xff);
}
return output;
(完整程序见附件)
总是提示 Error 1 Operator '&' cannot be applied to operands of type 'uint[]' and 'int' F:\Program_Files\Microsoft Visual Studio 8\mywork\CJMD5\CJMD5\md5.cs 266 32 CJMD5
怎么&两边的操作数类型必须一致吗 ?