摘要: int类型在C++中的长度是跟系统有关的,但是在Java中为了可移植性,统一为4个字节 char类型的不同:Java是UNICODE的编码,所以char是2个字节 JAVA中表达式中类型的自动提升,例如:byte b = 100; b = b * 2; 在JAVA中会报错,因为b*2的结果已经提升为int类型,int类型不能对byte类型进行赋值 模运算符%的不同:C++中指对整形才可以使用,但是... 阅读全文
posted @ 2011-01-15 23:27 左手程序右手诗 阅读(1469) 评论(0) 推荐(0) 编辑
摘要: 重要的基础概念By default, every application runs in its own Linux process. Android starts the process when any of the application's code needs to be executed, and shuts down the process when it's no longer needed and system resources are required by other applications.Each process has its own virtual machi 阅读全文
posted @ 2011-01-15 15:03 左手程序右手诗 阅读(1623) 评论(0) 推荐(0) 编辑