码迷,mamicode.com
首页 >  
搜索关键字:static members    ( 45825个结果
类的静态成员函数和静态成员变量的使用
当将类的某个数据成员声明为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
java中各种类型的输入输出
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++中的友元函数和友元类友元函数、友元类、访问私有数据成员、友元关系[C++]ZLib:c++ zlib(qt)压缩与解压缩基础:[转载]C/C++中单井号与双井号的使用:http://happyboy200032.blog.163.com/blog/static/469031132012...
分类:编程语言   时间:2014-05-21 18:08:40    阅读次数:271
C# 的时间戳转换
/// /// 时间戳转为C#格式时间 /// /// Unix时间戳格式 /// C#格式时间 public static DateTime GetTime(string timeStamp) { ...
分类:其他好文   时间:2014-05-21 18:01:24    阅读次数:263
Java示例代码
记录一些典型的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
C# 实现快速闪电关机、快速重启
using System;using System.Runtime.InteropServices;namespace FastReboot{ static class Program { private delegate uint ZwShutdownSystem(int...
分类:其他好文   时间:2014-05-21 17:18:09    阅读次数:391
将矩阵中为0的元素所在行列清零
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
log4cpp - 使用
#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
并行计算有向无环图和fork/join 框架
从多任务OS开始,线程主要用来表示IO异步;而今随着4G和多核等的到来,计算密集型又热门起来了。 硬件价格和性能从低到高: PC/Laptop multi core, memory shared PC clusters SuperComputers 假设一个理想并行计算机:每个处理器计算能力相同,忽略调度, static thread 是对一个虚拟处理器的软件层面的抽象; s...
分类:其他好文   时间:2014-05-21 08:17:39    阅读次数:326
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!