通过实现 DomainDriven 接口来接收请求参数,这种方法用的比较少,一般还是用前两种。 请求: 1 <a href="user/user!add?name=xiaoer&age=33">添加用户</a> User类: 1 package com.bjsxt.struts2.user.mode ...
分类:
其他好文 时间:
2017-04-06 11:49:14
阅读次数:
155
初始化过程和一般的变量相同 完整代码: 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 class student 5 { 6 private: 7 string name; 8 string id; 9 10 public: 11 stu ...
分类:
其他好文 时间:
2017-04-05 21:20:39
阅读次数:
143
1、创建DataTable对象 2、为DataTable创建列 3、添加数据 4、判断是否有数据 5、查询 6、复制 7、DataRow赋值 8、把DataRow数据存到DataTable中 9、转成字符串 10、筛选数据(详见DefaultView文章) 11、排序 12、判断一个字符串是否为Da ...
分类:
其他好文 时间:
2017-04-05 16:17:04
阅读次数:
222
spring 整合Mybatis 运行环境:jdk1.7.0_17+tomcat 7 + spring:3.2.0 +mybatis:3.2.7+ eclipse 错误:class path resource [config/spring/springmvc.xml] cannot be opene ...
分类:
编程语言 时间:
2017-04-05 09:34:13
阅读次数:
533
Description Input 只有一行一个整数 N(0 < N < 1000000)。 Output 只有一行输出,为整数M,即f(1)到f(N)的累加和。 Sample Input 3 Sample Output 5 Solve: 数论水题,求因数又不是质因数,所以,只要求出对于[1 , n ...
分类:
其他好文 时间:
2017-04-04 22:02:10
阅读次数:
126
Anton likes permutations, especially he likes to permute their elements. Note that a permutation of n elements is a sequence of numbers {a1,?a2,?...,? ...
分类:
其他好文 时间:
2017-04-03 18:59:31
阅读次数:
200
概要 学完ArrayList和LinkedList之后,我们接着学习Vector。学习方式还是和之前一样,先对Vector有个整体认识,然后再学习它的源码;最后再通过实例来学会使用它。第1部分 Vector介绍第2部分 Vector数据结构第3部分 Vector源码解析(基于JDK1.6.0_45) ...
分类:
其他好文 时间:
2017-04-03 16:59:16
阅读次数:
254
1 class Noncopyable{//主要作用在于禁止基类对象的拷贝; 2 public: 3 Noncopyable(){} 4 ~Noncopyable(){} 5 Noncopyable(const Noncopyable&) = delete; 6 const Noncopyable ...
分类:
其他好文 时间:
2017-04-03 12:08:49
阅读次数:
166
https://vjudge.net/contest/68966#problem/D http://blog.csdn.net/u010489389/article/details/19218795 1 #include<iostream> 2 #include<cstdio> 3 #include ...
分类:
编程语言 时间:
2017-04-02 23:47:48
阅读次数:
319
Description FJ打算带他的N(1 <= N <= 30,000)头奶牛去参加一年一度的“全美农场主大奖赛”。在这场比赛中,每个参赛者都必须让他的奶牛排成一列,然后领她们从裁判席前依次走过。 今年,竞赛委员会在接受队伍报名时,采用了一种新的登记规则:他们把所有队伍中奶牛名字的首字母取出,按 ...
分类:
其他好文 时间:
2017-04-02 22:05:39
阅读次数:
241