iOS开发之自定义一个单例这里我使用宏:// .h#define single_interface(class) + (class *)shared##class;// .m// \ 代表下一行也属于宏// ## 是分隔符#define single_implementation(class) \s...
分类:
移动开发 时间:
2015-04-24 22:27:09
阅读次数:
214
package com.eyugame.modle;
/**
* 饿汉式单利模式
* @author JYC506
*
*/
public class Single {
private static Single single=new Single();
public Single getInstance(){
return single;...
分类:
其他好文 时间:
2015-04-24 21:09:24
阅读次数:
161
The computer op erates on a single stack of sets, which is initially empty. After each op eration, thecardinality of the topmost set on the stack is o...
分类:
其他好文 时间:
2015-04-24 20:52:45
阅读次数:
126
-----?BEGIN?LICENSE?----
Andrew?Weber
Single?User?License
EA7E-855605
813A03DD?5E4AD9E6?6C0EEB94?BC99798F
942194A6?02396E98?E62C9979?4BB979FE
91424C9D?A45400BF?F6747D88?2FB88078
90F5...
分类:
其他好文 时间:
2015-04-24 17:00:17
阅读次数:
107
Single Number I给定一个数组,除了一个元素出现一次之外,其余的元素都出现两次。找出这个元素分析:只要将所有的元素都异或一次,最后的结果就是这个出现一次数。代码:int singleNumber(int A[], int n) {
int num;
int i;
num=A[0];
for(i=1;i<n;i++)
{
num=nu...
分类:
其他好文 时间:
2015-04-24 12:44:02
阅读次数:
168
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
编程语言 时间:
2015-04-23 22:54:56
阅读次数:
140
题目:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:
其他好文 时间:
2015-04-23 21:50:12
阅读次数:
155
摘抄自http://www.cnblogs.com/springfor/p/3870801.html“这道题运用位运算的异或。异或是相同为0,不同为1。所以对所有数进行异或,得出的那个数就是single number。初始时先让一个数与0异或,然后再对剩下读数挨个进行异或。这里运用到异或的性质:对于...
分类:
其他好文 时间:
2015-04-23 12:41:05
阅读次数:
151
1 什么是单点登陆 单点登录(Single Sign On),简称为 SSO,是目前比较流行的企业业务整合的解决方案之一。SSO的定义是在多个应用系统中,用户只需要登录一次就可以访问所有相互信任的应用系统。 较大的企业内部,一般都有很多的业务支持系统为其提供相应的管理和IT服务。例如财务系统为财务人...
分类:
其他好文 时间:
2015-04-23 09:25:12
阅读次数:
254
前端代码 // 引用JS JS调用代码 //JS调用 Html代码//Html代码 Single City (local): 后端数据源 public ActionResult Seach() ...
分类:
Web程序 时间:
2015-04-23 07:02:55
阅读次数:
122