一:在js中截取字符串的方法有两个:substring和sunstr 1、方法:
substring(int stringIndex,[int endIndex])截取从索引为stringIndex到索引为endIndex之间的字符
substr(int stringInd...
分类:
其他好文 时间:
2014-05-10 23:40:36
阅读次数:
1028
RSA的算法涉及三个参数,n、e1、e2。其中,n是两个大质数p、q的积,n的二进制表示时所占用的位数,就是所谓的密钥长度。e1和e2是一对相关的值,e1可以任意取,但要求e1与(p-1)*(q-1)互质;再选择e2,要求(e2*e1)mod((p-1)*(q-1))=1。(n,e1),(n,e2)...
分类:
其他好文 时间:
2014-05-10 23:42:36
阅读次数:
522
测试用例是一系列特定的软件行为,用于验证软件的某特定功能、检查软件能否正确处理某种出错行为、或者检查其他一些软件质量衡量的属性 (如性能、安全、可靠性等)。
一个测试用例是一个正式的文件或记录,描述了测试活动是怎样具体执行的。测试用例设计的目的就是发现缺陷,但是测试用例的用处远远超出发现缺陷。 测试...
分类:
其他好文 时间:
2014-05-12 09:28:32
阅读次数:
171
环境系统:阿里云64位centos 6.3[rao@AY~]$ cat
/etc/issueCentOS release 6.3 (Final)Kernel \r on an \m[rao@AY~]$ uname -aLinux
AY1404062027584053a1Z 2.6.32-358.6....
分类:
其他好文 时间:
2014-05-12 09:27:33
阅读次数:
510
缺省构造函数,又称默认构造函数,是C++以及其他的一些面向对象的程序设计语言中,对象的不需要参数即可调用的构造函数。下面将针对缺省构造函数的定义、使用、以及注意问题等方面简要探讨。1、缺省构造函数是怎样的形式?是如何定义的?
在C++的一个类中,如果构造函数没有参数,或者构造函数的所有参数都有默认....
分类:
编程语言 时间:
2014-05-12 09:30:38
阅读次数:
326
1.powershellwindow自带。。右下角搜索。。powershell2.conemuhttps://code.google.com/p/conemu-maximus5/wiki/Downloads?tm=23cmderhttp://bliker.github.io/cmder/4.cygw...
【MobileSubstrate】 Cydia Substrate(formerly
calledMobileSubstrate) is thede factoframework that allows 3rd-party developers
to provide run-time patche....
分类:
其他好文 时间:
2014-05-12 09:31:37
阅读次数:
287
//把秒转换成分钟 /// /// 把秒转换成分钟 /// /// public static int
SecondToMinute(int Second) { // / 换成 * 号...
分类:
其他好文 时间:
2014-05-12 09:33:41
阅读次数:
198
这个函数让我在纸上画了半天才搞明白,把我的理解给大家分享下。void
CGContextAddArc(CGContextRef c, CGFloat x, CGFloat y, CGFloat radius, CGFloat
startAngle, CGFloat endAngle, int clo...
分类:
其他好文 时间:
2014-05-12 09:32:43
阅读次数:
266
目前的开发中,我们一般会从数据库查询出来数据,再把数据填充到一个对象中,然后就可以很方便的读取对象信息了。data填充到object这个过程很是繁琐,为简化这个问题,各种框架、组件层出不穷,在此不一一列举,我实在也列举不出
-_- ! 诸多框架用起来固然方便,但我总会想起一句话,原文模糊了,出处.....
分类:
其他好文 时间:
2014-05-12 09:34:45
阅读次数:
433
模式动机:使用户可以一致性的处理整个树形结构或者树形的一部分;使用户在使用时无需对他们进行区分,可以一致的对待容器对象和叶子对象.定义:组合多个对象形成树形结构以表示具有
部分-整体 关系的层次结构.组合模式让客户端可以统一对待单个对象和组合对象.结构型模式组合模式结构图结构成员: 抽象构件(Co....
分类:
其他好文 时间:
2014-05-12 09:36:47
阅读次数:
202
Given a string S and a string T, count the
number of distinct subsequences of T in S.A subsequence of a string is a new
string which is formed from th...
分类:
其他好文 时间:
2014-05-12 09:37:51
阅读次数:
287
Given an integer, convert it to a roman
numeral.Input is guaranteed to be within the range from 1 to 3999.public class
Solution { public String int...
分类:
其他好文 时间:
2014-05-10 20:31:10
阅读次数:
335
1、选择表达式中的类型转换public class Test { public void static
main(String args[]){ int i = 5; System.out.println("Vlaue Is " + ((...
分类:
编程语言 时间:
2014-05-12 09:39:52
阅读次数:
294