startActivityForResult(Intent intent, int
requestCode)onActivityResult(int requestCode, int resultCode, Intent
data)setResult(int resultCode, Intent d...
分类:
移动开发 时间:
2014-05-15 15:48:49
阅读次数:
372
首先,本篇文章只讲 “默认构造函数”,即如你所知,默认构造函数是不带参数的构造函数。
编译器会在 适当的时候 为class合成一个默认构造函数 ~~
先问以下两个问题:
编译器会为任何没有声明构造函数的class,合成默认构造函数?? 错!!!
合成的默认构造函数会显示设定class内的每一个data member的默认值?? 错!!!
class Base
{
public:
...
分类:
编程语言 时间:
2014-05-15 06:25:02
阅读次数:
270
综合查询(8)--分类汇总
这一节来看看分类汇总,在一个查询方案建立好了以后,可以对其进行汇总和分类汇总。分类汇总的级数可以任意级,为了方便操作,暂定为最多三级。
先来看看总计。
在上图显示总计前面就是一个分组设置,当前状态是未选择,我先选择一个按年度分组。
下面显示明细,看看结...
分类:
其他好文 时间:
2014-05-15 06:04:19
阅读次数:
279
出现这个问题的原因主要有两个
1、如果项目没有使用Spring,则struts.xml配置文件中,这个action的class属性的路径没有写完整,应该是包名.类名
2、如果项目使用了Spring,那就是applicationContext.xml里面没有为这个action定义bean。这样strus.xml中的对应action的class属性的值就是Spring配置文件中bean的id,比如...
分类:
其他好文 时间:
2014-05-15 05:24:51
阅读次数:
229
所需要的包:
junit需要是4.5以上
org.springframework.test-XXX.RELEASE.jar
package test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
i...
分类:
编程语言 时间:
2014-05-15 04:21:45
阅读次数:
357
ADT 线性表(List)
Data
线性表的数据对象集合为{a1,a2,…,an},每个元素的类型均为DataType。
其中,除第一个元素a1外,每一个元素有且只有一个直接前驱元素,除了最后一个元素an外,每一个元素有且只有一个直接后继元素。
数据元素之间的关系是一对一的关系。
Operation
InitList(*L): 初始化操作,...
分类:
编程语言 时间:
2014-05-15 03:39:54
阅读次数:
357
一、 创建表
在官方的wiki里,example是这样的:
Sql代码
CREATE [EXTERNAL] TABLE [IF NOT EXISTS] table_name [(col_name data_type [COMMENT col_comment], ...)] [COMMENT table_comment] [PARTITION...
分类:
数据库 时间:
2014-05-14 14:50:27
阅读次数:
463
mysql5.6.14配置my.cnf多实例,mysql_install_db初始化不读取my.cnf配置文件
[ERROR] InnoDB: auto-extending data file ./ibdata1 is of a differentsize 768 pages (rounded down to MB) than specified in the .cnf file: initial65536 pages, max 0 (relevant if non-zero) pages!
2014-0...
分类:
数据库 时间:
2014-05-14 14:20:48
阅读次数:
412
using System;using System.Data;using
System.Configuration;using System.Web;using System.Web.Security;using
System.Web.UI;using System.Web.UI.WebContro...
分类:
Web程序 时间:
2014-05-14 13:33:33
阅读次数:
510
//doc_anonymous_mutex_shared_data.hpp#include
struct shared_memory_log{ enum { NumItems = 100 }; enum { LineSize = 100 };
shared_memory_log()...
分类:
其他好文 时间:
2014-05-14 10:38:00
阅读次数:
343