Solaris的磁盘分区称为分片(slice),在磁盘上,一个环形就是一个分区分片的命名通常是c#t#d#s#c:Controller number,控制器标号,c0就是第一个控制器t:Taget number,目标编号,例如SATA第一个插槽就是t0d:Disk number,磁盘编号,在该插槽上...
分类:
其他好文 时间:
2015-01-12 20:56:29
阅读次数:
163
最近在接触软件注册模块,需要获取硬盘序列号来生成注册码。 硬盘序列号,英文名:Hard Disk Serial Number,该号是硬盘厂家为区别产品而设置的,是唯一的。网上搜索一下,发现获取硬盘序列号的代码遍地都是,但很多是错误的。典型代表就是使用GetVolumeInformation函数获取序...
分类:
编程语言 时间:
2015-01-12 20:47:45
阅读次数:
303
1、ABS函数 函数名称:ABS 主要功能:求出相应数字的绝对值。 使用格式:ABS(number) 参数说明:number代表需要求绝对值的数值或引用的单元格。 应用举例:如果在B2单元格中输入公式:=ABS(A2),则在A2单元格中无论输入正数(如100)还是负数(如-100),B2中...
分类:
其他好文 时间:
2015-01-12 17:29:53
阅读次数:
187
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2015-01-12 17:27:56
阅读次数:
158
将一个对象赋值给另一个对象,实际是将引用从一个地方复制到另一个地方。这意味着假若对对象使用c=d,那么c和d都指向原本只有d指向的那个对象,下面这个例子将向大家阐释这点。
package gao.com;
class Test{
int number;
}
public class Assigment {
public static void main(String[]arg...
分类:
编程语言 时间:
2015-01-12 16:45:54
阅读次数:
175
Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.Credits:Special thanks to@tsf...
分类:
其他好文 时间:
2015-01-12 14:25:06
阅读次数:
126
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,?1,2,1] ha...
分类:
其他好文 时间:
2015-01-12 13:07:22
阅读次数:
149
异常:
Caused by: java.sql.SQLException: We are already in the process of making 11 connections and the number of simultaneous builds has been throttled to 10
解决方案:
在proxool.xml中增加:
20
默认
10
...
分类:
其他好文 时间:
2015-01-12 13:04:31
阅读次数:
320
在实际项目开发中,经常会存在浮点数四舍五入保留几位小数的问题,故收集了几种常用方法:直接上代码(保留两位小数)。Format.java:import java.math.BigDecimal;import java.text.DecimalFormat;import java.text.Number...
分类:
编程语言 时间:
2015-01-12 12:43:31
阅读次数:
196
#include
#include
int IsPerfect(int x);
int main()
{
int m;
printf("Input m:");
scanf("%d", &m);
if (IsPerfect(m)) /* 完全数判定 */
printf("%d is a perfect number...
分类:
编程语言 时间:
2015-01-12 11:03:08
阅读次数:
198