当将类的某个数据成员声明为static时,该静态数据成员只能被定义一次,而且要被同类的所有对象共享。各个对象都拥有类中每一个普通数据成员的副本,但静态数据成员只有一个实例存在,与定义了多少类对象无关。静态方法就是与该类相关的,是类的一种行为,而不是与该类的实例对象相关。
静态数据成员的用途之一是统计...
分类:
其他好文 时间:
2014-05-21 20:15:29
阅读次数:
249
1、不用权限2、启动照相机和图库 static final int
TAKE_AVATAR_CAMERA_REQUEST = 1;//图库 static final int TAKE_AVATAR_GALLERY_REQUEST
= 2;//照相机//启动照相机String strAvatarPro...
分类:
其他好文 时间:
2014-05-21 19:50:06
阅读次数:
268
import java.lang.Exception;import
java.lang.String;import java.util.Scanner;public class test { public static void
main(String[] args) { Scanner s = ....
分类:
编程语言 时间:
2014-05-21 18:27:44
阅读次数:
252
友元类:C++中的友元函数和友元类友元函数、友元类、访问私有数据成员、友元关系[C++]ZLib:c++
zlib(qt)压缩与解压缩基础:[转载]C/C++中单井号与双井号的使用:http://happyboy200032.blog.163.com/blog/static/469031132012...
分类:
编程语言 时间:
2014-05-21 18:08:40
阅读次数:
271
/// /// 时间戳转为C#格式时间 /// /// Unix时间戳格式 /// C#格式时间
public static DateTime GetTime(string timeStamp) { ...
分类:
其他好文 时间:
2014-05-21 18:01:24
阅读次数:
263
记录一些典型的Java代码。一、文件读取 1 public class Test4 { 2
public static void main(String[] args) { 3 try { 4 FileReader fdFileReader=new
F...
分类:
编程语言 时间:
2014-05-21 17:39:52
阅读次数:
259
using System;using
System.Runtime.InteropServices;namespace FastReboot{ static class Program {
private delegate uint ZwShutdownSystem(int...
分类:
其他好文 时间:
2014-05-21 17:18:09
阅读次数:
391
public class setZero {
static void print(int [][]a){
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
System.out.print(a[i][j]+" ");
}
System.out.println();
}
}
/*stati...
分类:
其他好文 时间:
2014-05-21 16:16:56
阅读次数:
252
#pragma once
#include "ThreadLock.h"
#include
#include
#include
#include
#include
#include
#include
#include
class QuoteLog
{
public:
static QuoteLog* getInstance();
void log...
分类:
其他好文 时间:
2014-05-21 10:03:49
阅读次数:
157
如题:解决android上面java.net.UnknownHostException: Unable to resolve host "m.blog.csdn.net": No address associated with hostname的错误:
这是由于我们在开发的过程中没有给模拟器和Manifest开放网络导致的,
解决方法目前有两种:
1、android设备网络连接没打开,例如3...
分类:
移动开发 时间:
2014-05-21 06:46:02
阅读次数:
1745