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
占没有查到替换的方法,先记着!The method
startManagingCursor(Cursor) from the type Activity is deprecatedThe constructor
SimpleCursorAdapter(Context, int, Cursor, St...
分类:
移动开发 时间:
2014-06-02 16:05:59
阅读次数:
309
2014-06-02 BaoXinjian一、汇总1. 显示游标2. 隐身游标3. 动态游标REF
Cursor4. 游标的四属性二、分步解析1.
显示游标游标从declare、open、fetch、close是一个完整的生命旅程DECLARECURSORget_wip_cur(c_wip_enti...
分类:
数据库 时间:
2014-06-02 15:52:21
阅读次数:
390
本来尝试用jquery中的empth()方法去清空节点(清空元素中的所有后代节点),但发现还是不起作用,后来从官网中了解到datasource的用法,直接改变数据源后,不用重新刷新grid,界面就会改变。$("#grid").data("kendoGrid").dataSource.data([])...
分类:
其他好文 时间:
2014-06-02 15:42:19
阅读次数:
1476
Crashing RobotsDescriptionIn a modernized
warehouse, robots are used to fetch the goods. Careful planning is needed to
ensure that the robots reach th...
分类:
其他好文 时间:
2014-06-02 13:13:23
阅读次数:
283
[.NET]
SQL数据总笔数查询程序下载范例下载:点此下载原始码下载:点此下载NuGet封装:点此下载数据查询开发系统时,使用C#执行SQL查询指令,就可以从SQL数据库里查询所需数据。SELECT
Id, Name FROM Users数据总笔数查询当数据量过多时,系统会需要采用分页的方式来分批...
分类:
数据库 时间:
2014-06-02 12:33:31
阅读次数:
321
查看自己电脑已安装的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