HALF_EVEN是什么意思呢?如果要丢掉的数字不是5的话,需要看这个数字前面的数字的奇偶性,如果是奇数,使用HALF_UP规则;如果是偶数使用HALF_DOWN规则;如果要丢掉的数字是5的话,round到它的偶数邻居上;
round到它的偶数邻居上是什么意思呢?
例子:
System.out.println("==================");
for(int i = 0;...
分类:
编程语言 时间:
2015-02-28 18:43:21
阅读次数:
183
No resource found that matches the given name '@android:style/Theme.Holo'此类错误一般原因如下:android版本过低,右键你的项目->Properties->Android,选择APIlevel11,或者更高的,就没问题了。
分类:
其他好文 时间:
2015-02-28 18:30:39
阅读次数:
112
1.问题 电脑上同时安装了VS2008,VS2010,使用VS2010编译VS2008建立的工程,或者,VS2010创建新的工程、编译时,出现以下链接错误: LINK : fatal error LNK1123: failure during conversion to COFF: file inv...
分类:
其他好文 时间:
2015-02-28 10:01:02
阅读次数:
208
Problem Description The digital root of a positive integer is found by
summing the digits of the integer. If the resulting value is a single
digit then that digit is the digital root. If the resu...
分类:
其他好文 时间:
2015-02-28 01:35:08
阅读次数:
142
经常从github上down下来一些工程,但是因为as版本问题,导致很多因为as版本原因导致的错误,下面记载我发现的一些问题和解决办法,会一直更新
1.Gradle
DSL method not found: 'runProguard()'
解决办法:
更改项目build.gradle参数
old:
buildTypes {
release {
ru...
分类:
移动开发 时间:
2015-02-27 21:40:26
阅读次数:
255
最近Ubuntu 14.04 几次系统升级后,conkeror启动出错:Error initializing.
Error: Error opening input stream (invalid filename?): chrome://conkeror/content/io解决方法是修改/opt/conkeror/debian/conkeror/usr/share/conkeror/compo...
分类:
系统相关 时间:
2015-02-27 13:35:29
阅读次数:
163
原本使用ifconfig 可以使用,今天是怎么了,可能安装软件修改了,百度~~ [oracle@localhost /]$ ifconfig 提示:“bash: ifconfig: command not found” 于是我切换到root用户下 [root@localhost /]$ ifconf...
分类:
其他好文 时间:
2015-02-27 13:26:09
阅读次数:
145
You may also have seen this problem in interview questions. Two cases:1. all chars have even numbers of it2. only 1 char have odd numbers of it#includ...
分类:
其他好文 时间:
2015-02-27 07:43:23
阅读次数:
134
重装了VS2010,在编译程序时出现了“error: LNK1123: failure during conversion to COFF: file invalid or corrupt ”这个错误,意思是由于COFF标识转换失败。而在连接中完成此项工作的是cvtres.exe。这个错误的原因是存在多个版本的cvtres.exe。
系统目录:C:\Windows\Microsoft.NET\F...
分类:
其他好文 时间:
2015-02-27 00:24:27
阅读次数:
203
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the array....
分类:
其他好文 时间:
2015-02-26 20:22:53
阅读次数:
118