2015年1月16日

Divide Two Integers

摘要: 参考:http://www.cnblogs.com/springfor/p/3871008.htmlDivide two integers without using multiplication, division and mod operator.If it is overflow, retur... 阅读全文

posted @ 2015-01-16 15:48 luckygxf 阅读(145) 评论(0) 推荐(0)

java 判断两个数是否异号

摘要: java 整型int占4个字节32位,两个数异或后移动31位判断结果,如果是1则异号,如果是0则同号 1 public class ShowEnviromentViarible { 2 3 public static void main(String[] args) { 4 ... 阅读全文

posted @ 2015-01-16 12:27 luckygxf 阅读(1625) 评论(0) 推荐(0)

字节顺序的详细解释(转)

摘要: 原出处:http://blog.csdn.net/yingfox/article/details/1831848一、基本概念位的概念:在计算机中,一个0或1称为一位(bit)。字节:连续的八位称为一个字节(Byte),字节是计算机中可单独处理的最小单位。即以字节为基本单位来解释信息,规定1个字节是8... 阅读全文

posted @ 2015-01-16 09:36 luckygxf 阅读(3499) 评论(0) 推荐(0)

导航