Topic: <<=是什么意思? |
Print this page |
1.<<=是什么意思? | Copy to clipboard |
Posted by: bullyyd Posted on: 2003-04-08 10:24 i<<=j的值是多少? i=4,j=2; |
2.Re:<<=是什么意思? [Re: bullyyd] | Copy to clipboard |
Posted by: kenwil Posted on: 2003-04-08 11:30 <<= : assignment with bitwise left shift, filling with 0s |
3.Re:<<=是什么意思? [Re: bullyyd] | Copy to clipboard |
Posted by: bullyyd Posted on: 2003-04-08 13:36 那么<<和<<=有什么不同呢? |
4.Re:<<=是什么意思? [Re: bullyyd] | Copy to clipboard |
Posted by: nettman Posted on: 2003-04-08 17:38 class Test { public static void main(String[] args) { int i = 4; int j = 2; i <<= j; System.out.println("i = " + i); } } 结果:i = 16 "<<="为复合运算符,意思是:将“i“中的值左移”j“位后重新赋给”i“。 |
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 |