数学函数绝对值 abs()圆周率 PI()平方根 sqrt()模除取余
mod(被除数,除数)随机数 rand()四舍五入 round(数字)次方 pow(5,2)e为底的指数函数 exp(数字)字符串函数字符长度
length(字符)字符连接 concat(字符1,字...
分类:
数据库 时间:
2014-05-18 20:05:37
阅读次数:
469
public class AllSort{ static String[] buf =
{"1","2","44","7"}; public static void main(String[] args) { perm(buf, 0, 3);
}...
分类:
其他好文 时间:
2014-05-18 20:02:39
阅读次数:
343
有两种方式第一种是先转换成特定编码格式NSDATA第二种是先转换成特定编码格式char
*(cString)转成gbk:第一种:- (NSString *) utf82gbk:(NSString *)string{ NSStringEncoding
enc = CFStringConvertEnco...
分类:
其他好文 时间:
2014-05-18 19:37:53
阅读次数:
348
if ($(this).val() == "" || $(this).val() == null) {
filterString = "";} else { filterString = "^" + replaceRegexStr(filterList[0]) +
"$"; for...
分类:
其他好文 时间:
2014-05-17 22:02:57
阅读次数:
253
1.环境变量的配置:path键 值:bin文件夹的位置 classpath键
值:.2.第一个HelloWorld:public class Hello{ public static void main(String args[]){
System.out.print("Hello World!"....
分类:
移动开发 时间:
2014-05-17 21:41:13
阅读次数:
460
因为项目需要使用Linq来查询数据,但是在多条件查询时,需要使用一大堆if(...!=string.empty)等判断条件感觉不是很优雅。网上搜索以下,大概找到了两种办法,一种是老外写的一个类,感觉用着麻烦;还有就是提供一扩展个方法,参数为某个类型,当调用该方法时,用反射去遍历这个类型的属性,再拿....
分类:
其他好文 时间:
2014-05-17 21:39:19
阅读次数:
356
我们都知道,NSSet在存储数据时,不允许存储相同数据?那么,这里的相同该如何理解呢?
很多人都简单的理解为按照其存储对象的内存地址进行评判.其实不然.经过个人实验证明:当类型为NSString,NSNumber..时,依然会比较其值是否相同,如果相同,依然会被去除.
其评判依据类似与isE...
分类:
其他好文 时间:
2014-05-17 20:43:07
阅读次数:
547
1.基础知识/*可以定义大小是0的数组,但不能引用,因为没有指向任何对象new
string[10]调用类的默认构造函数new int[10]没有初始化,但new
int[10]()会将数组初始化成0,返回第一个元素的首地址*/#include #include using namespace st...
分类:
编程语言 时间:
2014-05-17 20:11:13
阅读次数:
316
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 索引{ class Program { static void
Main(string[]...
分类:
其他好文 时间:
2014-05-17 20:10:36
阅读次数:
254