#region 判断图片是否一致/// /// 判断图片是否一致/// /// 图片一///
图片二/// 是否一致public bool IsSameImg(Bitmap img, Bitmap bmp){//大小一致if (img.Width ==
bmp.Width && img.Height...
分类:
其他好文 时间:
2014-05-05 23:40:03
阅读次数:
472
Link:http://oj.leetcode.com/problems/balanced-binary-tree/Given a binary tree,
determine if it is height-balanced.For this problem, a height-balanced ...
分类:
其他好文 时间:
2014-05-05 22:29:55
阅读次数:
382
//单独动态创建一个控件; procedure TForm1.BitBtn1Click(Sender:
TObject);var myPanel : TPanel;begin myPanel :=
TPanel.Create(nil);//关于Create(nil)和Create(Self)的区别....
分类:
其他好文 时间:
2014-05-05 21:50:24
阅读次数:
291
Pop is an extensible animation engine for iOS and
OS X. In addition to basic static animations, it supports spring and decay
dynamic animations, makin...
分类:
其他好文 时间:
2014-05-04 12:04:46
阅读次数:
302
1.屏幕 (screen 属性) Window
对象的screen属性引用的是Screen对象,他有width , height 属性, 分别指定的是以像素计的屏幕的宽高, 而 availWidth
availHeight 指的是实际可用的宽和高(他们排出了桌面任务栏这些特性所用的宽高)。2 浏览....
分类:
其他好文 时间:
2014-05-04 09:59:24
阅读次数:
337
题目来源:CF 427D Match & Catch
题意:给出2个字符串 求最短的连续的公共字符串 并且该字符串在原串中只出现一次
思路:把2个字符串合并起来求height 后缀数组height的应用
#include
#include
#include
using namespace std;
const int maxn = 100010;
char s[maxn];
int s...
分类:
其他好文 时间:
2014-05-04 09:32:45
阅读次数:
315
有时我们需要获得浏览器窗口或屏幕的大小、窗口下拉框下拉的距离等数据,对应这些需求,js中提供了不少解决方法,只是数量稍多容易混淆它们各自的意义,下面咱们用图例来解释下12个常见对象属性的作用。其中有6个常用的浏览器窗体属性(由于offsetWidth/Height在不同浏览器下表现有出入,故不在本章...
Hash 索引结构的特殊性,其检索效率非常高,索引的检索可以一次定位,不像B-Tree
索引需要从根节点到枝节点,最后才能访问到页节点这样多次的IO访问,所以 Hash 索引的查询效率要远高于 B-Tree 索引。虽然 Hash 索引效率高,但是
Hash 索引本身由于其特殊性也带来了很多限制和弊端...
分类:
数据库 时间:
2014-05-03 22:34:01
阅读次数:
369
场景:
1. C++引入了dynamic_cast 这种类型识别的强制转换,对识别错误的程序是有好处的,建议能用的地方就用,它能在转换错误时返回0或抛出异常,比起C的旧强制转换
执行转换了不对类型依旧不会报错可靠些,因为这类错误如果发生了,其实很难找出来。...
分类:
编程语言 时间:
2014-05-03 21:55:11
阅读次数:
333