支付宝客户端回调会在AppDelegate里面: 网页支付宝回调在调起支付宝支付时: ...
分类:
Web程序 时间:
2016-12-23 16:45:03
阅读次数:
519
File类的常用方法 boolean exists() 判断文件或目录是否存在 boolean isFile() 判断是否是文件 boolean isDirectory() 判断是否是目录 String getPath() 返回此对象表示的文件的相对路径名 String getAbsolutePat ...
分类:
其他好文 时间:
2016-12-23 16:39:57
阅读次数:
168
来自百度文库:http://wenku.baidu.com/view/31777dc1d5bbfd0a795673b1.html stat函数讲解: 表头文件: #include <sys/stat.h>#include <unistd.h>定义函数: int stat(const char *fi ...
分类:
其他好文 时间:
2016-12-22 14:48:38
阅读次数:
181
使用三个UIButton实现无限轮播:https://github.com/LXfeiYu/LXCarouselImages.git 功能: 1.可以选择开启和关闭定时器 2.有点击事件 使用方法: 点击事件 ...
分类:
编程语言 时间:
2016-12-22 11:12:55
阅读次数:
186
【算法】树链剖分 【题解】模板题,见http://www.cnblogs.com/onioncyc/p/6207462.html 调用线段数时要用新编号pos[i] !!! #include<cstdio> #include<cctype> #include<algorithm> using nam ...
分类:
其他好文 时间:
2016-12-21 21:06:01
阅读次数:
199
[BZOJ3173][Tjoi2013]最长上升子序列 试题描述 给定一个序列,初始为空。现在我们将1到N的数字插入到序列中,每次将一个数字插入到一个特定的位置。每插入一个数字,我们都想知道此时最长上升子序列长度是多少? 输入 第一行一个整数N,表示我们要将1到N插入序列中,接下是N个数字,第k个数 ...
分类:
其他好文 时间:
2016-12-21 00:06:29
阅读次数:
201
//关于目录的获取 //获取沙盒目录(算是跟目录吧) NSHomeDirectory() //获取document目录(常用) let paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, t... ...
分类:
其他好文 时间:
2016-12-16 15:00:46
阅读次数:
292
3667: Rabin-Miller算法 Description Input 第一行:CAS,代表数据组数(不大于350),以下CAS行,每行一个数字,保证在64位长整形范围内,并且没有负数。你需要对于每个数字:第一,检验是否是质数,是质数就输出Prime 第二,如果不是质数,输出它最大的质因子是哪 ...
分类:
其他好文 时间:
2016-12-15 14:42:42
阅读次数:
227
1.打包成bat org.codehaus.mojo appassembler-maven-plugin 1.2.1 windows ... ...
分类:
移动开发 时间:
2016-12-12 19:39:54
阅读次数:
222
背景:iOS调用相机和访问图库 一、调用相机或图库: -(void)imgviewClick { ALAuthorizationStatus author = [ALAssetsLibrary authorizationStatus]; AVAuthorizationStatus authStatu ...
分类:
移动开发 时间:
2016-12-10 21:50:26
阅读次数:
191