2.随机数的获取;//获取三十个随机数://arc4random();//获取随机数;// int i = 0;// while (i temp ? max : temp;// i++;// }// printf("其中最大的数是:%d\n", max);//// int i = 0;// pri....
分类:
移动开发 时间:
2015-03-02 16:32:35
阅读次数:
400
1,demo下载地址:https://b.alipay.com/order/productDetail.htm?productId=2013080604609654&tabId=4#ps-tabinfo-hash2,载入 aplipay库,关联类库3,用申请到的 seller,partner,pri...
分类:
移动开发 时间:
2015-03-02 14:47:35
阅读次数:
244
简单的工厂模式我的理解,所谓的简单工厂模式就是在客户端中不会直接实例化对象,例如在控制台应用程序中,我们创建了一个public abstract class Food { // 输出点了什么菜 public abstract void Pri...
分类:
其他好文 时间:
2015-03-01 20:54:03
阅读次数:
136
在Android源码中的NotificationManagerService.java这个类中定义了两个静态变量,分别对应Toast.LENGTH_LONG(3.5秒)和Toast.LENGTH_SHORT(2秒)的值
private
static final
int LONG_DELAY = 3500;
// 3.5 seconds
pri...
分类:
其他好文 时间:
2015-03-01 13:17:16
阅读次数:
790
/*A - THE DRUNK JAILERTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 1218DescriptionA certain pri...
分类:
其他好文 时间:
2015-02-27 20:05:18
阅读次数:
138
class KetamaNodeLocator { private Dictionary ketamaNodes; private HashAlgorithm hashAlg; private int numReps = 160; pri...
分类:
编程语言 时间:
2015-02-22 11:00:35
阅读次数:
196
本机是mysql的数据库,想用另一台ip为192.168.1.9的连接是用这个mysql数据库,可是报了这个错误。
查询得到2个方法
第一个是在user表把localhost改为%, 我这么做后不仅没有解决,本地连接都要root@%这么做了(现在想想好像是我操作失误把所有localhost都给改了)。
第二个方法就生效了。
终端登陆mysql,执行一句sql:
GRANT ALL PRI...
分类:
数据库 时间:
2015-02-19 15:09:03
阅读次数:
221
1. 练习1 for循环打印 1-200内不能被3整除的数#import int main(int argc, const char * argv[]) { @autoreleasepool { //for循环打印 1-200内不能被3整除的数 pri...
分类:
其他好文 时间:
2015-02-19 11:50:47
阅读次数:
152
先从test.c 开始说, 我们看到test.c 里面有两个函数用来测试, doit 和dofile, 一个是读char* 一个是读file, 肯定是读字符串的要简单, 所以先看doit./* Parse text to JSON, then render back to text, and pri...
分类:
Web程序 时间:
2015-02-13 14:42:40
阅读次数:
372
package com.studySpring;
import org.springframework.beans.factory.annotation.Autowired;
public class Boss {
@Autowired
private Car car;
@Autowired
pri...
分类:
其他好文 时间:
2015-02-11 14:37:34
阅读次数:
131