打印出一个数的二进制码

1、power方法:

2、左移方法

3、右移方法:

判断某位是否为1,用与。

 

posted @ 2019-03-12 10:39  ostartech  阅读(325)  评论(0编辑  收藏  举报