1 import java.text.*; 2 public class Gxjun 3 { 4
public static void main(String atgs[]) 5 { 6 StringBuffer str= new
StringBuffer()...
分类:
编程语言 时间:
2014-06-04 18:06:21
阅读次数:
234
1 import java.text.*; 2 public class Gxjun 3 { 4
public static void main(String args[] ) 5 { 6 int n=123456789; 7
System.out.println("整数"+"按千分组号(带正好.....
分类:
编程语言 时间:
2014-06-04 17:55:19
阅读次数:
203
新浪微博的OpenAPI登录public static IEnumerator
LoginRequest(string userid, string passwd, Action action) {
xDebug.Log("GetRequest 1"); strin...
分类:
其他好文 时间:
2014-06-04 17:27:55
阅读次数:
236
C++支持三种类型的member functions:
static、nonstatic和virtual,每一种类型调用方式都不相同。一 nostatic members functions1 调用方式
C++的设计原则之一就是:nonstatic member function知识和一般的non....
分类:
其他好文 时间:
2014-06-04 17:08:52
阅读次数:
328
1.const
表示的是常量(constant),始终不会发生改变,在编译时就确定了。所以类中定义一个常量可以被类访问也可以被类的实例访问。定义时就不能和static一起用。如果用了也是没有作用的,所以语法就规定其是无效的。在声明时同时初期化。
private const string Name=....
分类:
其他好文 时间:
2014-06-02 19:45:46
阅读次数:
201
1、定义接口
使用interface来定义一个接口。接口定义同类的定义类似,也是分为接口的声明和接口体,当中接口体由常量定义和方法定义两部分组成。定义接口的基本格式例如以下:[修饰符]
interface 接口名 [extends 父接口名列表]{[public] [static] [final]....
分类:
编程语言 时间:
2014-06-02 19:21:37
阅读次数:
193
归并排序,递归实现
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
方法:1.在jni目录下新建Application.mk; 加入 APP_STL :=
stlport_static 右边的值还可以换成下面几个:system -
使用默认最小的C++运行库,这样生成的应用体积小,内存占用小,但部分功能将无法支持stlport_static - 使用STLport作...
分类:
其他好文 时间:
2014-06-02 15:35:29
阅读次数:
207
查看自己电脑已安装的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