Topic: 问,在java中如何进行2进制位的向左环移?急!

  Print this page

1.问,在java中如何进行2进制位的向左环移?急! Copy to clipboard
Posted by: kupe
Posted on: 2005-05-25 13:31

如,有100010011000,向左环移4位成100110001000
在java中如何实现?
请高手指点!谢谢

2.Re:问,在java中如何进行2进制位的向左环移?急! [Re: kupe] Copy to clipboard
Posted by: wanghang110119
Posted on: 2005-05-25 17:07

假如a=100010011000
则a<<4
就是左移四位!

3.Re:问,在java中如何进行2进制位的向左环移?急! [Re: kupe] Copy to clipboard
Posted by: kupe
Posted on: 2005-05-25 17:56

要循环左移怎么办???


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923