演示样例项目下载地址 https://github.com/cerastes/Encryption1MD5创建MD5类#import @interface CJMD5 : NSObject+(NSString *)md5HexDigest:(NSString *)input;@end#import ...
分类:
移动开发 时间:
2014-08-04 17:12:47
阅读次数:
259
#include #include //可以使用一些内置函数using namespace std;int isprime(int x);int main(){ int m,n; for(m=101;m<230;m++) { if(isprime(m)) cout<<m<<end...
分类:
其他好文 时间:
2014-08-04 17:09:07
阅读次数:
437
#include using namespace std;int main(){ int n,a,sum=0; cout>n>>a; for(int i=1;i<=n;i++) { sum+=a; a=a+10*a;//不断赋值替换之前的数值 } cout<<sum<<end...
分类:
其他好文 时间:
2014-08-04 17:03:47
阅读次数:
213
UIWindow+PazLabs.h (header file)#import @interface UIWindow (PazLabs)- (UIViewController *) visibleViewController;@end UIWindow+PazLabs.m (implementa....
分类:
其他好文 时间:
2014-08-04 13:47:17
阅读次数:
192
#include#includeusing namespace std;int main(){ string s; while(cin>>s) { int i,begin,end,total = s.size(),l = s.size(); for(i ...
分类:
其他好文 时间:
2014-08-03 23:00:36
阅读次数:
188
1、case语法: case when 条件1 then 返回值1 when 条件2 then 返回值2 ... else 返回值N end;示例:declare i integer; str varchar2(20);begin i := 3; str := case when i =...
分类:
数据库 时间:
2014-08-03 12:38:35
阅读次数:
300
计算矩阵的行列式很简单,用det方法或是log_det方法 1 det(A) ? 如果A不是方阵的(square),将抛出std::logic_error异常 例: mat?m?=?"3,2,4;1,-2,3;2,3,2;";
double?d?=?det(m);
cout?<<?d?<<?end...
分类:
其他好文 时间:
2014-08-02 23:37:54
阅读次数:
409
转自:http://blog.csdn.net/ghevinn/article/details/22800059 DWORD start_time=GetTickCount(); {...} DWORD end_time=GetTickCount();...
分类:
编程语言 时间:
2014-08-02 23:15:24
阅读次数:
375
实例一、substring(int beginIndex,int endIndex)String end ="2007-12-31";System.out.println(end.substring(8,10));输出结果:31下标从0开始数;参数说明:beginIndex - 起始索引(包括)。e...
分类:
编程语言 时间:
2014-08-02 15:25:13
阅读次数:
220
与折半查找是同一个模式,不同的是,在这里不在查找某个确定的值,而是查找确定值所在的上下边界。def getBounder(data, k, start, end, low_bound = False): if end > 1 if data[ mid ] > k: end = mid - 1 ...
分类:
其他好文 时间:
2014-08-02 10:01:53
阅读次数:
208