会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ForeverLearn
你的时间在哪儿,你的成就就在哪儿
博客园
首页
新随笔
联系
订阅
管理
2011年5月12日
c与运算来使奇数为1偶数为0
摘要: #include"stdio.h"void main(){ int i,j; i = 6; while(i--) { printf("please input/n"); scanf("%d",&j); j = (j&1); printf("output%d/n",j); } system("pause");}注意(j&1)的技巧 按位与运算 0x01
阅读全文
posted @ 2011-05-12 20:04 foreverlearn
阅读(183)
评论(0)
推荐(0)
编辑
公告