码迷,mamicode.com
首页 >  
搜索关键字:design grid    ( 9338个结果
设计模式总结之没有结束的结尾
设计模式是为程序代码优化而诞生的,目的是设计出易维护、容易拓展、易复用、灵活性好的程序。设计模式体现是面向对象的三大思想:封装、继承和多态。设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。 毫无疑问,设计模式于己于他人于系统都是多赢的;设计模式使代码编制真正工程化;设计...
分类:其他好文   时间:2014-06-07 01:29:07    阅读次数:257
Leetcode--Best Time to Buy and Sell Stock III
Problem Description: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most two transa...
分类:其他好文   时间:2014-06-05 09:33:52    阅读次数:342
Design Pattern 设计模式 Decorator 装饰者模式
1 设计一个基类 2 继承这个基类,并包含这个基类的一个对象 3 创建继承类的时候,初始化这个基类,因为是基类指针,所以可以是所有基类的衍生类对象,那么就可以叠加任意多个衍生类对象了。 关键是在衍生类中包含一个基类对象,然后有了继承和包含两重关系,可以使得一个类一个类对象叠加,达到装饰目的。 等于是创建了一个对象指针链表,一个一个对象发挥其相应的作用。 下面程序装饰一个桌...
分类:其他好文   时间:2014-06-05 06:15:17    阅读次数:278
UVA 12508 - Triangles in the Grid(计数问题)
12508 - Triangles in the Grid 题目链接 题意:给定一个n?m格子的矩阵,然后给定A,B,问能找到几个面积在A到B之间的三角形。 思路:枚举每一个子矩阵,然后求[0,A]的个数减去[0,B]的个数就是答案,然后对于每个子矩阵个数很好求为(n?r+1)?(m?c+1)。关键在于怎么求每个子矩阵的符合个数。 想了好久,参考别人题解才想出来,分3种情况...
分类:其他好文   时间:2014-06-05 01:09:44    阅读次数:248
duplicate报ORA-01017权限问题
duplicate报ORA-01017权限问题   环境: OS:RedHat EnterPrise Linux 5.8 x64 Cluster:Oracle Grid 11.2.0.4 Database:Oracle Database EnterPrise 11.2.0.4 Archive:RAC+DG          今天在配置DG的过程中,前期环境都已经准备好了,就差最后一步...
分类:其他好文   时间:2014-06-04 23:37:04    阅读次数:341
WPF: 旋转Thumb后,DragDelta移动距离出错的解决
当Thumb跟随Grid旋转90度后,拖拽控件时会飞掉。 private void Thumb_DragDelta(object sender, System.Windows.Controls.Primitives.DragD...
分类:移动开发   时间:2014-05-31 12:36:30    阅读次数:337
AspxGridView 数据的汇总统计
AspxGridView底部增加数据汇总行这个功能在AspxGridView中不用复杂的代码实现,实际上只是设置下GridView的属性而已1. ShowFooter设置为True,即显示. 位置:Grid属性->Settings->ShowFooter 设置其值为True.2. TotalSu.....
分类:Web程序   时间:2014-05-31 08:11:12    阅读次数:347
Best Time to Buy and Sell Stock III
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-30 16:19:05    阅读次数:320
Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-30 15:00:54    阅读次数:335
Kendo UI Grid 模型绑定
分享一个Kendo UI中的典型模型绑定实例
分类:其他好文   时间:2014-05-30 14:58:12    阅读次数:481
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!