欣乐

The eagles are coming!

导航

p71 异或运算

//71
program test;
var 
  i,j,k:byte;
begin
  i:=%01001101;
  j:=%11010100;
  k:=i xor j; //异或运算
  writeln( binstr(i,8) );
  writeln( binstr(j,8) );
  writeln( binstr(k,8) );
end.

 

posted on 2014-09-19 11:35  欣乐  阅读(122)  评论(0编辑  收藏  举报