using System;using System.Collections.Generic;using
System.ComponentModel;using System.Data;using System.Drawing;using
System.Linq;using System.Text;u...
分类:
数据库 时间:
2014-06-04 17:30:04
阅读次数:
214
归并排序,递归实现
public class MergeSort2 {
// 对data数组中的 [a,b) 区间的数据进行归并排序,
// 排序结束后,[a,b)间数据处于升序有序状态
static void mergeSort(int[] data, int a,int b)
{
if (a >= b) return;
int mid=(a+b)/2;
mergeSort(da...
分类:
其他好文 时间:
2014-06-02 19:02:41
阅读次数:
305
<?php
/**
* 生成永远唯一的激活码
* @return string
*/
function create_guid($namespace = null) {
static $guid = '';
$uid = uniqid ( "", true );
$data = $namespace;
$data .= $_SERVER ['REQUEST_TIME']; //...
分类:
Web程序 时间:
2014-06-02 18:55:35
阅读次数:
327
最近一直用惯了C#,陡然间改回C++都有些不习惯了!吐槽一下,C#太方便了!!!
言归正传,C++里有些时候会用到String转char*这个功能,于是进来搜到了一些方法:
如果你申请了这样一个字符串:string str = "This is a test!",那么:
1、str.data()可以返回该字符串对应的char *,如char *p = str.data();
2、s...
分类:
编程语言 时间:
2014-06-02 18:53:33
阅读次数:
347
本来尝试用jquery中的empth()方法去清空节点(清空元素中的所有后代节点),但发现还是不起作用,后来从官网中了解到datasource的用法,直接改变数据源后,不用重新刷新grid,界面就会改变。$("#grid").data("kendoGrid").dataSource.data([])...
分类:
其他好文 时间:
2014-06-02 15:42:19
阅读次数:
1476
查看自己电脑已安装的Jdk的位数的方法:
public class ShowJdkBit {
public static void main(String[] args) {
String arch = System.getProperty("sun.arch.data.model");
System.out.println(arch + "-bit");
}...
分类:
其他好文 时间:
2014-06-02 12:30:19
阅读次数:
155
Scope defines where in a program a variable is accessible. Ruby has four types of variable scope, local, global, instance and class....
分类:
其他好文 时间:
2014-06-02 10:37:39
阅读次数:
241
1、图形化最小安装debian7.5操作系统2、更改debian的apt源配置文件/etc/apt/sources.listroot@duan:~#cat/etc/apt/sources.list
debhttp://ftp.de.debian.org/debianwheezymaincontribnon-free
deb-srchttp://ftp.de.debian.org/debianwheezymaincontribnon-free3、更新apt,并..
分类:
其他好文 时间:
2014-06-02 10:35:03
阅读次数:
379
11gRAC更改归档模式ASM
本实验有两个节点tip01,tip02
oracle_sid分别是tips1,tips2
1.在节点1tip01上执行
[root@tip01~]#su-grid
[grid@tip01~]$sqlplus/assysasm
SQL>selectnamefromv$asm_diskgroup;
NAME
------------------------------
DATA
OCR
SQL>alterdisk..
分类:
其他好文 时间:
2014-06-02 04:14:14
阅读次数:
310
实验平台:RHEL5.8实验拓扑:PHP配置部分:1、编译安装PHP./configure--prefix=/usr/local/php--with-mysql=mysqlnd--with-openssl--with-mysqli=mysqlnd--enable-mbstring--with-freetype-dir--with-gpg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr--enable-sockets-..
分类:
数据库 时间:
2014-06-02 03:58:43
阅读次数:
296