详细讲解请看:http://www.cnblogs.com/cielosun/p/6582333.html 饿汉模式: ...
分类:
其他好文 时间:
2017-10-30 14:59:37
阅读次数:
156
1.单一职责原则 Single Respoonsibility Principle(SRP) --封装 2.开闭原则 Open Close Principle(OCP)--对扩展开放,对修改封闭 3.里式替换原则 Liskov Substitution Principle(LSP)--所有引用基类的 ...
分类:
移动开发 时间:
2017-10-30 14:59:16
阅读次数:
167
继承映射在 Annotation 中使用 @Inheritance 注解,并且需要使用 strategy 属性指定继承策略,继承策略有 SINGLE_TABLE、TABLE_PER_CLASS 和 JOINED 三种。 一、SINGLE_TABLE SINGLE_TABLE 是将父类和其所有的子类集 ...
分类:
Web程序 时间:
2017-10-30 14:27:15
阅读次数:
160
::-webkit-scrollbar 滚动条整体部分 ::-webkit-scrollbar-thumb 滚动条里面的小方块,能上下左右移动(取决于是垂直滚动条还是水平滚动条) ::-webkit-scrollbar-track 滚动条的轨道(里面装有thumb) ::-webkit-scroll ...
分类:
其他好文 时间:
2017-10-30 14:17:20
阅读次数:
164
题目链接:https://vjudge.net/problem/HDU-3642 Jack knows that there is a great underground treasury in a secret region. And he has a special device that ca ...
分类:
其他好文 时间:
2017-10-29 12:38:01
阅读次数:
163
其实本应该从一般性的表讲起的,先说顺序表,再说链表 。但顺序表的应用范围不是很广,而且说白了就是数组的高级版本,他的优势仅在于两点:1.逻辑直观,易于理解。2.查找某个元素只需要常数时间——O(1),而与此同时,因为每个单元的物理内存都是连续的,所以不便于移动,不便于精细化操作,每次插入和删除都会带 ...
分类:
其他好文 时间:
2017-10-28 16:32:18
阅读次数:
138
拉格朗日插值(Lagrange interpolation)是一种多项式插值方法,指插值条件中不出现被插函数导数值,过n+1个样点,满足如下图的插值条件的多项式。也叫做拉格朗日公式。 这里以拉格朗日3次插值为例,利用C++进行实现 1 //利用lagrange插值公式 2 #include<iost ...
分类:
编程语言 时间:
2017-10-28 12:51:09
阅读次数:
157
A page, memory page, or virtual page is a fixed-length contiguous block of virtual memory, described by a single entry in the page table. It is the sm ...
分类:
其他好文 时间:
2017-10-28 11:14:27
阅读次数:
128
Chaper 1. A piece of Poetry New York is 3 hours ahead of California, but it does not make California slow. Someone graduated at the age of 22, but wai ...
分类:
其他好文 时间:
2017-10-27 23:55:49
阅读次数:
406
http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html Object/Relational Mapping Working with both Object-Oriented so ...
分类:
移动开发 时间:
2017-10-27 22:04:05
阅读次数:
210