package util;import java.util.Random;/** * * @author jkfeng * 获得随机字母和数字的组合(字母+数字组合,字母组合,数字组合) * */public class RandomCharOrNumUtil { public static vo....
分类:
其他好文 时间:
2015-06-13 20:11:02
阅读次数:
135
1)前台html模板页面: {$vo.post_title} ---- {$vo.post_modified} --status:{$vo.post_status} {$pag...
分类:
Web程序 时间:
2015-06-13 18:26:10
阅读次数:
179
tks:第一篇:领域驱动设计系列(1)通过现实例子显示领域驱动设计的威力第二篇:领域驱动设计系列(2)浅析VO、DTO、DO、PO的概念、区别和用处第三篇:领域驱动设计系列(3)有选择性的使用领域驱动设计第四篇:领域驱动设计阅读思考
分类:
其他好文 时间:
2015-06-13 16:51:51
阅读次数:
137
1. 冒泡排序:比较前后两个相邻的元素,如果大于则进行交换,这样每次遍历一篇数组后,最大的一个数据就沉到了数组的N-1位置上。 两种改进:a. 如果当前遍历,没有发生交换,则已经有序;b. 记录最后发生数据交换的位置i,这个位置之后的数据显然已经有序,则下一次遍历只需要对i之前的数据冒泡即可。vo....
分类:
编程语言 时间:
2015-06-11 16:07:00
阅读次数:
111
反射技术给类赋值的好处就是可以简化代码,封装的好处就显而易见了。最直接的用途就是用在在显示配置文件的时候,个人习惯性做法是做一个VO来存储需要的数据,其代码如下:internal class BaseItemVO { public string name; public string ...
分类:
编程语言 时间:
2015-06-11 01:49:23
阅读次数:
385
Problem DescriptionN(3#include#include#includeusing namespace std;int an[51000];int s[110000];const int N = 109999;int lb(int x){ return x&(-x);}vo...
分类:
其他好文 时间:
2015-06-09 21:53:14
阅读次数:
99
没啥好讲的 c++11 thread类的基本使用#include "stdafx.h"#include #include void Func(int n){ for (int i = 0; i < 3; ++i) std::cout << "func " << i << std::endl;}vo....
分类:
编程语言 时间:
2015-06-07 21:35:04
阅读次数:
152
原文网摘:http://www.cnblogs.com/yc_sunniwell/archive/2010/06/24/1764231.htmlvolatile提醒编译器它后面所定义的变量随时都有可能改变,因此编译后的程序每次需要存储或读取这个变量的时候,都会直接从变量地址中读取数据。如 果没有vo...
分类:
其他好文 时间:
2015-06-07 20:12:30
阅读次数:
128
Problem:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".解法一:全局翻转 局部翻转 核心代码 vo....
分类:
其他好文 时间:
2015-06-05 22:36:57
阅读次数:
129
2015-06-05知识点: (1)像素值的存储(2)引用的参数传递方式(3)单通道和三通道图像像素访问的区别代码如下: 1 #include "highgui.h" 2 #include "cxcore.h" 3 #include "cv.h" 4 #include "cmath" 5 6 vo....
分类:
其他好文 时间:
2015-06-05 15:41:57
阅读次数:
925