一.劣币驱逐良币(英语:Bad money drives out good),也称作格雷欣法则或格勒善定律(Gresham's Law),是一个经济学定律。托马斯·格雷欣为16世纪的英国伊丽莎白铸币局长,格雷欣观察到,消费者保留储存成色高的货币(undebased money,贵金属含量高),在市面...
分类:
其他好文 时间:
2014-06-28 19:19:36
阅读次数:
221
find手册中对time的解释:以 atime 为例:-atime n File was last accessed n*24 hours ago. When find figures out how many 24-hours periods ago the file was last...
分类:
其他好文 时间:
2014-06-28 12:09:59
阅读次数:
222
1.从pfx格式的证书提取出密钥和证书set OPENSSL_CONF=openssl.cnfopenssl pkcs12 -in my.pfx -nodes -out server.pemopenssl rsa -in server.pem -out server.keyopenssl x509 ...
分类:
其他好文 时间:
2014-06-23 06:45:18
阅读次数:
211
1.params 可变参数 必须出现在参数列表的最后。2.ref 仅仅是一个地址,引用传递,可以把值传递强制改为引用传递3.out 让函数可以输出多个值?1.在方法中必须为out参数赋值?2.out参数的变量在传递之前不需要赋值,即使赋值了也不能在方法中使用。(赋值没意义)3ref?参数在传递之前必...
分类:
其他好文 时间:
2014-06-23 00:31:36
阅读次数:
251
【ref & out】 ref与out均指定函数参数按引用传递,惟一的不同是,ref传递的参数必须初始化,而out可以不用。 ref与out无法作为重载的依据,即ref与out编译器认为一样。如下: 但是ref函数与非ref函数是可以重载的,如下: 参考:1、http://msdn.mi...
分类:
其他好文 时间:
2014-06-22 23:10:00
阅读次数:
180
下边是写东西到一个文件中的Java代码。运行后每一次,一个新的文件被创建,并且之前一个也将会被新的文件替代。这和给文件追加内容是不同的。
public static void writeFile1() throws IOException {
File fout = new File("out.txt");
FileOutputStream fos = new FileOutputStrea...
分类:
编程语言 时间:
2014-06-22 20:25:33
阅读次数:
222
Beavergnaw
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 6204
Accepted: 4090
Description
When chomping a tree the beaver cuts a very specific shape out o...
分类:
其他好文 时间:
2014-06-22 17:06:55
阅读次数:
233
题目要求:
Input a value n, then print out a N×N matrix.
Example 1: Input 2, then
1 2
4 3
Example2: Input 4, then
1 2 3 4
12 13 14 5
11 16 15 6
10 9 8 7
Please write a program to...
分类:
其他好文 时间:
2014-06-22 00:38:02
阅读次数:
409
默认的timeout是5000ms毫秒,如果是断点调试的时候,经常会出现timeout,所以修改这个值就不会出现timeout了,Eclipse下的设置位置:Window->Preferences->Android->DDMSADB connection time out(ms):5000
分类:
数据库 时间:
2014-06-20 15:21:50
阅读次数:
798
好吧这道题我丢脸了,竟然做错了。 如下程序的输出结果是: class Alligator{ public static void main(String[] args){ int[]x[] = {{1,2},{3,4,5},{6,7,8,9}}; int[][]y = x; System.out.p...
分类:
其他好文 时间:
2014-06-20 15:15:31
阅读次数:
151