]]>re: C++ 銆愬北瀵ㄧ畻娉曘戝疄鐜頒竴涓渶綆鍗昩it浣嶅叏鏂囨煡鎵劇儲寮曘?/title>http://www.shnenglu.com/foxriver/archive/2011/02/12/138500.html#139946闅忎究鍐欏啓锝烇綖闅忎究鍐欏啓锝烇綖Sat, 12 Feb 2011 09:57:00 GMThttp://www.shnenglu.com/foxriver/archive/2011/02/12/138500.html#139946灝濊瘯鍋氫簡涓嬶紝榪樹笉閿欙綖锝?br> public void or(byte[] input, byte index) { int move = index % 8; int fix = index / 8; input[fix] |= (byte)(1 << move); }
public bool and(byte[] input1, byte[] input2) { for (int i = 0; i < input1.Length; i++) { int x = input1[i] & input2[i]; if (x > 0) return true; } return false; }
]]>re: C++ 銆愬北瀵ㄧ畻娉曘戝疄鐜頒竴涓渶綆鍗昩it浣嶅叏鏂囨煡鎵劇儲寮曘?/title>http://www.shnenglu.com/foxriver/archive/2011/01/14/138500.html#138549qiuxiafeiqiuxiafeiFri, 14 Jan 2011 13:50:00 GMThttp://www.shnenglu.com/foxriver/archive/2011/01/14/138500.html#138549涓嶈繃榪樻槸寰堣禐 寮傛洸鍚屽伐