实现IHttpHandler接口的同时必须继承IRequiresSessionState接口,才能拿到session public class HttpHandler: IHttpHandler, IRequiresSessionState { public void P...
分类:
其他好文 时间:
2014-09-30 13:18:59
阅读次数:
202
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final DisplayMetrics d....
分类:
移动开发 时间:
2014-09-30 12:35:12
阅读次数:
238
1.vector
#include
#include
#include
using namespace std;
void vectorTest()
{
vector container;
for (int i = 0; i < 10; i++)
{
container.push_back(i);
}
vector::iterato...
分类:
其他好文 时间:
2014-09-30 11:29:32
阅读次数:
231
3.数组初始化 1.数组是一个固定长度的集合,在初始化大小后就不能改变其长度。 数组分配在堆中,并在栈中存有指向该数组的一个引用。 class Arr
{ public static void main(String[] args) { int[] a = {1, 2, 3, 4}; int[] b...
分类:
编程语言 时间:
2014-09-30 02:21:31
阅读次数:
291
//
// main.c
// 从尾到头打印链表
//
// Created by 李亚坤 on 14-9-29.
// Copyright (c) 2014年 李亚坤. All rights reserved.
//
#include
typedef struct ListElmt_ //链表元素声明
{
void *data;
struct ListElmt...
分类:
其他好文 时间:
2014-09-30 01:49:02
阅读次数:
200
super关键字:在java中使用super来引用基类的成分。程序code:class FatherClass{ public int value; public void f(){ value = 100; System.out.println("Fathe...
分类:
编程语言 时间:
2014-09-30 00:35:41
阅读次数:
261
用C++模板书写一段序列数组的全部排列
/**
* 书本:【windows程序设计】
* 功能:输出全部的排列情况
* 文件:全排列.cpp
* 时间:2014年9月29日21:52:55
* 作者:cutter_point
*/
#include
using namespace std;
//交换两个元素的函数
template
inline void Swap(Type &a...
分类:
其他好文 时间:
2014-09-30 00:33:47
阅读次数:
344
public class ButtonX:Button { protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) { ...
分类:
其他好文 时间:
2014-09-29 23:44:41
阅读次数:
307
#includeusing namespace std;void Merge(int a[],int b[],int first,int mid,int last)//合并两个有序数组{ int p=first,q=mid+1; int pos=first; while(p<=mid&&q<=las...
分类:
其他好文 时间:
2014-09-29 23:36:11
阅读次数:
487
今天换新版本的ADT之后默认建立工程引入Fragment,之前对Fragment没有做过了解。
想学习一下,在Activity的onCreate方法中无论怎么获取Fragment都是null,代码如下:
protected void onCreate(Bundle savedInstanceState) {
Log.d(TAG, "" + "ActionBarActivi...
分类:
其他好文 时间:
2014-09-29 22:32:41
阅读次数:
202