S SonicX Unregistered / Unconfirmed GUEST, unregistred user! 2006-04-24 #1 对变量值与表达式值执行按位“与” 0101 (result) 1100 (expression) ---- 0100 (输出)
W WickedladII Unregistered / Unconfirmed GUEST, unregistred user! 2006-04-24 #2 procedure TForm1.Button1Click(Sender: TObject); var a, b: byte; begin a := $5 // 0101 b := $C // 1100 showmessage(inttohex((a and b), 2)) // 0100 end;
procedure TForm1.Button1Click(Sender: TObject); var a, b: byte; begin a := $5 // 0101 b := $C // 1100 showmessage(inttohex((a and b), 2)) // 0100 end;