Sub 总模块() Dim Dic, arr Dim i As Integer, r As Integer, x1, x2, x3, x4, x5, x6 As Integer Dim Str, Str1 As String '拆分字符串,并针对内存数据进行处理 ...
分类:
其他好文 时间:
2015-05-14 15:44:49
阅读次数:
204
Sub 数据整理() Dim iAreaCount As Integer Dim i As Integer Dim sTemp, sTemp2 As String Dim iTemp As Long Dim bFind As Boolean Dim...
分类:
编程语言 时间:
2015-05-14 15:44:09
阅读次数:
423
背景
用装饰模式来实现机房收费系统登录之后的权限控制
总体思路
每个用户都是一个人,每种权限可以理解成人的不同服饰。
程序结构
代码
Class1的代码:
Public Class UserLogin
Public Overridable Sub Login()
Main.Show()
End Sub
End Class
Pu...
分类:
其他好文 时间:
2015-05-14 12:10:17
阅读次数:
139
找一个序列中三个数,其和与给定的target最接近。【思路】还是练习48中总结的,将题目变成2sum。【my code】int threeSumClosest(vector& num, int target) { int result=0; int sub=INT_MAX...
分类:
其他好文 时间:
2015-05-13 10:07:11
阅读次数:
129
题目:DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater loca...
分类:
其他好文 时间:
2015-05-13 06:03:23
阅读次数:
118
DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the ma...
分类:
其他好文 时间:
2015-05-12 18:44:10
阅读次数:
129
Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7)...
分类:
其他好文 时间:
2015-05-12 15:18:08
阅读次数:
89
/** * Created by Administrator on 2015/5/11. */var Super = function(){};Super.prototype.sayHello = function(){};var Sub = function(){ Super.call(th...
分类:
其他好文 时间:
2015-05-11 23:56:47
阅读次数:
125
CreateClone an existing repositorygit clone ssh://user@domain.tld/repo.gitClone an existing repository and all its sub-modules recursivelygit clone --...
分类:
其他好文 时间:
2015-05-11 23:29:46
阅读次数:
153
Longest Valid Parentheses问题:Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses sub...
分类:
其他好文 时间:
2015-05-11 12:27:10
阅读次数:
110