多余字用省略号表示width: 200px;overflow:hidden;text-overflow:ellipsis;/*文字溢出的部分隐藏并用省略号代替*/white-space:nowrap;/*文本不自动换行*/
分类:
Web程序 时间:
2014-09-01 19:30:03
阅读次数:
249
代码: overflow: hidden; white-space: nowrap;text-overflow: ellipsis;重点代码:text-overflow: ellipsis;解释:简单理解就是我要把文本限制在一行(white-space: nowrap;),肯定这一行是有限制的(wi...
分类:
Web程序 时间:
2014-09-01 15:31:43
阅读次数:
155
--今天打开报警日志,看见错误:ORA-19504:failedtocreatefile"+DATA/prod/2_3_856847287.arc"ORA-17502:ksfdcre:4Failedtocreatefile+DATA/prod/2_3_856847287.arcORA-15041:d...
分类:
其他好文 时间:
2014-09-01 15:23:13
阅读次数:
211
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict = ["leet"...
分类:
其他好文 时间:
2014-08-31 20:07:12
阅读次数:
233
条款13:以对象管理资源许多资源被动态分配于heap内而后被用于单一区块或函数内。它们应该在控制流离开那个区块或函数时被释放。标准程序库提供的auto_ptr正是针对这种形式而设计的特制产品。auto_ptr是个类指针对象,也就是智能指针,其析构函数自动对其所指对象调用delete。以对象管理资源的...
分类:
编程语言 时间:
2014-08-31 19:59:51
阅读次数:
292
= GC 基础 ===================== JAVA堆的描述如下: 内存由 Perm 和 Heap 组成. 其中 Heap = {Old + NEW = { Eden , from, to } } JVM内存模型中分两大块,一块是 NEW Generation, 另一块...
分类:
其他好文 时间:
2014-08-31 17:00:01
阅读次数:
308
table{table-layout: fixed;}td{white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
分类:
Web程序 时间:
2014-08-31 13:12:01
阅读次数:
248
BUILD-MAX-HEAP'(A) heap-size[A]<-1 for i <- 2 to length[A] do MAX-HEAP-INSERT(A, A[i])如上,题目给出一种使用插入的办法建堆的算法,而书中6.4节给出的建堆算法如下:BUILD-MAX-HE...
分类:
其他好文 时间:
2014-08-31 10:25:01
阅读次数:
195
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4063DescriptionYou are playing a flying game.In the game, player controls an aircraft in a 2D-space.The...
分类:
其他好文 时间:
2014-08-30 19:04:59
阅读次数:
254
package com.iflytek.heap;
/**
* 左式堆
* @author fgtian
*
*/
public class LeftListHeap {
public static class HeapNode {
int mValue;
int mNpl = 0;
HeapNode mLeftChild;
HeapNode mRightChild;
...
分类:
其他好文 时间:
2014-08-30 16:27:19
阅读次数:
154