/*
*Corpyright (c)2013,烟台大学计算机学院
*All right reseved.
*作者:张凯
*完成日期:2014年5月28日
*版本号:v1.0
*输入描述:
*问题描述:
*程序输出:
*问题分析:
*算法设计:
*/
#include
#include
using namespace std;
class CSolid
{
...
分类:
其他好文 时间:
2014-06-07 02:01:08
阅读次数:
183
【题目】
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous ...
分类:
其他好文 时间:
2014-06-05 08:28:43
阅读次数:
321
/*
*Corpyright (c)2013,烟台大学计算机学院
*All right reseved.
*作 者 :曹昕卓 *完成日期:2014年5月28日
*版 本 号:v1.0
*输入描述:
*问题描述:彩票机选
*程序输出:
*问题分析: 还是自己选的放心啊,哈哈!
*算法设计:
*/
#include
#include
#include
using name...
分类:
其他好文 时间:
2014-06-05 06:13:57
阅读次数:
160
Java线程的join方法可用于暂停当前线程的执行直至目标线程死亡。Thread中一共有三个join的重载方法。
public final void join():该方法将当前线程放入等待队列中,直至被它调用的线程死亡为止。如果该线程被中断,则会抛出InterruptedException异常。
public final synchronized void join(long...
分类:
编程语言 时间:
2014-06-05 03:41:18
阅读次数:
243
Legend, 翻译过来的意思是图例。
在Extjs 的Chart 中, 到底右边红色框起来的部分就是Legend 了。
在 Extjs Chart 的定义中, 可以通过配置 legend 的配置值(configs)来设置Legend 显示的位置和样式:
position 配置显示的位置:可以设置的值有 "top","bottom", "left", "right", or "float"。
其他还可以设置图例显示的文字、图的样式等等, 详细可以参见 Ext.chart.Legend 的参考文档。代...
分类:
Web程序 时间:
2014-06-04 22:49:05
阅读次数:
526
【题目】
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
You should pack your words in a greedy approach; that is, pack as many words as you can in each line. Pad ...
分类:
其他好文 时间:
2014-06-04 22:37:46
阅读次数:
389
1.垂直居中有时我们会使用margin: 0
auto;作居中使用。但有的时候我们需要垂直居中,例如在div里面垂直居中显示一张加载中的gif图。下面这种写法就可以完美实现:垂直居中的子容器 {
position: absolute; left: 0; right: 0; ...
分类:
Web程序 时间:
2014-05-31 20:15:24
阅读次数:
261
1.清除浮动下面是两种常用的方式,而这两招也够用了(不用千招会,只需一招精)。1.结尾处加空div标签clear:both
Left Right 缺点:每次清除浮动都加空div,影响了HTML的结构,例如如果要算div的个数,都会被影响到。2.父级div定义伪类:after...
分类:
Web程序 时间:
2014-05-31 20:02:28
阅读次数:
332
body{ background-position:center;
background-repeat:no-repeat; }div#div1{ position:fixed; top:0; left:0; bottom:0;
right:0; z-i...
分类:
其他好文 时间:
2014-05-31 14:11:16
阅读次数:
243
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenliePopulating
Next Right Pointers in Each Node IITotal Accepted:9695Total
Submissions:32965Follow up...
分类:
其他好文 时间:
2014-05-31 02:59:18
阅读次数:
302