摘要: 按位与运算符(&)参加运算的两个数据,按二进制位进行“与”运算。运算规则:0&0=0;0&1=0;1&0=0;1&1=1;即:两位同时为“1”,结果才为“1”,否则为0例如:3&5即 0000 0011 & 0000 0101 = 0000 0001因此,3&5的值得1。另,负数按补码形式参加按位与... 阅读全文
posted @ 2015-05-28 19:30 微博和csdn还有你 阅读(620) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(){ int n=0; int score =0; int score_hight = 0; int score_low = 101; char name [10]={0}; char name_low... 阅读全文
posted @ 2015-05-28 16:26 微博和csdn还有你 阅读(7170) 评论(0) 推荐(0) 编辑