会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
料峭
CnBlogs
Home
New Post
Contact
Admin
Subscription
C++求一个十进制的二进制中1的个数
int
oneNumInBinary(
int
n){
int
cnt=
0
;
while
(n){ n
= n&(n-
1
); cnt
++
; }
return
cnt; }
posted @
2016-07-31 14:32
料峭
Views(
460
) Comments(
0
)
Edit
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
公告