1 public class BaseActivity<T> extends AppCompatActivity { 2 3 /** 4 * 获取T的名称,不能用getLocalClassName代替 5 */ 6 @SuppressWarnings("unchecked") 7 private S ...
分类:
其他好文 时间:
2016-05-07 13:14:21
阅读次数:
329
class base{public: virtual void display(){ cout << "base" << endl; } };class drive : private base{public: virtual void display(){ cout << "drive" << e ...
分类:
其他好文 时间:
2016-05-07 13:01:11
阅读次数:
119
这里是有关JAVA的collections的sort 的有关知识
一:
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class SortListDSemo2 {
public static void main(String[] args) {...
分类:
编程语言 时间:
2016-05-07 11:30:18
阅读次数:
188
hibernate.cfg.xml
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hiberna...
分类:
Web程序 时间:
2016-05-07 11:28:22
阅读次数:
156
项目1:程序填空
#include
#include
using namespace std;
class Person {
string name;
int age;
public:
Person() {}
void setname(string na) {
name = na;
}
void setage(int a) {
age = a;
}
string g...
分类:
编程语言 时间:
2016-05-07 11:22:20
阅读次数:
176
代码编写
接口编写
public interface TargetInterface {
void targetMethod();
}
实现类编写
public class Target implements TargetInterface {
@Override
public void targetMethod() {
System.out.println("target m...
分类:
编程语言 时间:
2016-05-07 11:20:51
阅读次数:
278
//处理键盘事件
#include"stdafx.h"
#include
#include
#include
#include
class KeyboardHandler :public osgGA::GUIEventHandler//人机交互事件处理器
{
public:
//重构父类GUIEventHandler.handle,事件处理函数,自定义交互操作,
//参数1:当前传入此处...
分类:
其他好文 时间:
2016-05-07 11:13:40
阅读次数:
853
POI依赖
org.apache.poi
poi-ooxml
3.14
创建excel
public static void createExcel() throws Exception {
Workbook workbook = null;// new HSSFWorkbook(); //xls
workbook = new XSSFWorkboo...
分类:
其他好文 时间:
2016-05-07 11:03:14
阅读次数:
168
额,这个名字有点怪怪的=_=ok,下面进入正题,为了演示方便,代码只写出简略的部分。copy构造函数class Base
{
public:
Base() {}
Base(const Base& )
{
cout<<"Base copy "<<endl;
}
};
class Derived: public Base
{
public:
De...
分类:
其他好文 时间:
2016-05-07 10:57:33
阅读次数:
166
AutoAdapt.h
#pragma once
class CAutoAdapt
{
public:
CAutoAdapt(void);
virtual ~CAutoAdapt(void);
public:
void ReSize(HWND m_hWnd);
void InitSize(HWND m_hWnd);
POINT old;
private:
};
...
分类:
编程语言 时间:
2016-05-07 10:57:16
阅读次数:
168