/// /// 时间戳转为C#格式时间 /// /// Unix时间戳格式 /// C#格式时间
public static DateTime GetTime(string timeStamp) { ...
分类:
其他好文 时间:
2014-05-21 18:01:24
阅读次数:
263
在C++中struct类型(结构体)属于类类型。 class student {} 与
strcut student
{}是一样的,唯一的区别就是class中如果未对成员进行public、private或protected等访问限定声明则默认为private的,而struct中则默认为publ...
分类:
编程语言 时间:
2014-05-21 17:55:05
阅读次数:
231
记录一些典型的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
#include
using namespace std;
class Box//盒子类
{
public:
//定义一个构造函数用于初始化对象数组
Box(int h, int w, int l);
int volume();//计算盒子的体积
private:
int height;//盒子的高
int width;//盒子的宽
int length;//盒子的长
};
...
分类:
其他好文 时间:
2014-05-21 17:09:16
阅读次数:
212
从今天起我们来看一下Android中的多线程的知识,Android入门容易,但是要完成一个完善的产品却不容易,让我们从线程开始一步步深入Android内部。一、线程基础回顾package com.maso.test;
public class TraditionalThread {
public static void main(String[] args) {
/*
* 线程的第...
分类:
移动开发 时间:
2014-05-21 15:46:53
阅读次数:
372
public void toHSV3( int red , int green , int blue ){
double maxRGB = FqMath.max( red , green , blue );//
double minRGB = FqMath.min( red , green , blue );
double itemp = maxRGB; //...
分类:
其他好文 时间:
2014-05-21 14:50:42
阅读次数:
305
#include
#include
using namespace std;
class Point
{
public:
Point(double a,double b):x(a),y(b) {}
double getx()
{
return x;
}
double gety()
{
...
分类:
其他好文 时间:
2014-05-21 14:44:07
阅读次数:
281
构造函数:构造函数是一种特殊的成员函数
构造函数的特点:
1 构造函数的函数名和类名相同
2 构造函数没有返回值
3 构造函数用于初始化对象
通过一个实例说明构造函数的作用
#include
using namespace std;
class Time//时间类
{
public:
void set_time();//设置时间
void show_time();//...
分类:
其他好文 时间:
2014-05-21 14:38:17
阅读次数:
263
package com.orgcent.util;
import java.io.File;
import android.os.Environment;
import android.os.StatFs;
public class MemoryStatus {
static final int ERROR = -1;
/**
* 外部存储是否可用
* ...
分类:
移动开发 时间:
2014-05-21 14:34:23
阅读次数:
362
using UnityEngine;using System.Collections;public
class wht : MonoBehaviour { static wht myInstance; public int x = 0; static int
instances =...
分类:
其他好文 时间:
2014-05-21 11:51:43
阅读次数:
207