import java.util.Random;/** * * @author mengzw *
@since 3.0 2014-5-22 */public class RandomTest { /** * 生成随机字符串 * * @param
length...
分类:
编程语言 时间:
2014-05-26 16:10:50
阅读次数:
379
不能再简化了#include#include#includeint
meng_read_proc(char*page,char**start,off_t offset,int count,int*eof,void*data){
char*s="Hello. This is meng p...
分类:
系统相关 时间:
2014-05-26 15:52:49
阅读次数:
463
不清楚DES算法的可以看维基百科<?phpclass DESede{ /** * 加密 *
@param $data 待加密明文 * @param $key DES私钥 * @param $use3des 是否启用3DES加密,默认不启用 */
f...
分类:
Web程序 时间:
2014-05-26 15:48:34
阅读次数:
1169
1 import "strconv" 2 3 func IsLeapYear(y string)
bool { //y == 2000, 2004 4 //判断是否为闰年 5 year, _ := strconv.Atoi(y) 6 if year%4 ==
0 && y...
分类:
其他好文 时间:
2014-05-26 15:12:52
阅读次数:
230
编号需要修改的代码1//// Prefix header//// The contents
of this file are implicitly included at the beginning of every source
file.//#import//服务器IP#define kXMPP...
分类:
移动开发 时间:
2014-05-26 14:51:52
阅读次数:
782
首先,下载MySql.Data.dll,并将它放在你的工程目录下的Dubug下。其次,右键点击你的项目名字,选择“添加引用”,将MySql.Data.dll添加到项目中最后,在代码页中输入using
MySql.Data.MySqlClient; 然后,就可以使用这个类库来建立连接了。建立连接代码:...
分类:
数据库 时间:
2014-05-26 14:41:36
阅读次数:
421
链表struct Node{int data;//数据域struct Node
*next;//指针域};//基本操作:创建,插入,删除,打印[百科示例]无需事先知晓链表数据的长度,充分利用内存空间,事先灵活的内存动态管理。链表允许插入和移除表上任意位置上的节点,但是不允许随机存取。因为它包含指向另...
分类:
其他好文 时间:
2014-05-26 14:16:31
阅读次数:
357
#include#include#include#include using namespace
std;template class joseph{ struct node { T data; node * next; node():next(...
分类:
编程语言 时间:
2014-05-26 13:58:27
阅读次数:
215
由于没话多少时间,这个扫雷我只实现了主要功能(扫雷功能,递归实现)废话不多说,直接上代码using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.D...
分类:
其他好文 时间:
2014-05-26 13:57:23
阅读次数:
305
Unity3D的Easy Touch
的手册最近寻找中文版本,google无果,自己动手。目前暂时只有c# ,javascript原理是一样的。 一、Quick Start 1-Import
EasyTouch Package. 2-Create an empty gameObjec...
分类:
其他好文 时间:
2014-05-24 08:00:45
阅读次数:
564