一. 异常的引入及基础 发现错误的理想时机是在编译阶段。也就是在你试图运行程序之前。然而,编译期间编译器并不能找出全部的错误,余下的错误仅仅有在运行期才干发现和解决,这类错误就是 Throwable。 这就须要错误源能够通过某种方式,把适当的信息传递给某个接收者。该接收者将知道怎样正确的处理这个问题 ...
分类:
编程语言 时间:
2017-08-12 15:29:47
阅读次数:
282
In CSS media the difference between width and device-width can be a bit muddled, so lets expound on that a bit. device-width refers to the width of th ...
分类:
Web程序 时间:
2017-08-10 17:00:08
阅读次数:
349
Problem Description CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there a ...
分类:
其他好文 时间:
2017-08-08 14:01:31
阅读次数:
176
Given a set of non negative integers and a target value, find if there exists a subset in the given set whose sum is target. Solution 1. Enumerate all ...
分类:
其他好文 时间:
2017-08-08 13:49:41
阅读次数:
112
创建‘onlyoffice‘docker网络dockernetworkcreate--driverbridgeonlyoffice安装ONLYOFFICEDocumentServer.sudodockerrun--netonlyoffice-i-t-d--restart=always--nameonlyoffice-document-server\-v/app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data\-v/app/onlyof..
分类:
其他好文 时间:
2017-08-07 17:36:39
阅读次数:
1677
题目链接:http://poj.org/problem?id=1417 解题思路:比较容易想到的是并查集,然后把第三组数据测试一下之后发现这并不是简单的并查集,而是需要合并之后然后判断的。并且鉴于题目要求输出数据,因此还要记录数据,可以说是非常有意思的题目。 首先,如果a b yes,那么a与b一定 ...
分类:
其他好文 时间:
2017-08-07 13:46:55
阅读次数:
187
先增加maven依赖: [html] view plain copy print? <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>4.0.0</ve ...
分类:
其他好文 时间:
2017-08-05 11:45:16
阅读次数:
161
Mike has always been thinking about the harshness of social inequality. He's so obsessed with it that sometimes it even affects him while solving prob ...
分类:
其他好文 时间:
2017-08-04 22:48:18
阅读次数:
232
Given a Binary Tree, Print the corner nodes at each level. The node at the leftmost and the node at the rightmost. For example, output for following i ...
分类:
Web程序 时间:
2017-08-03 12:29:51
阅读次数:
197
https://stackoverflow.com/questions/2688466/why-mallocmemset-is-slower-than-calloc/ The short version: Always use calloc() instead of malloc()+memset( ...
分类:
其他好文 时间:
2017-08-02 19:55:36
阅读次数:
171