1、struts2 action如何向JSP的JS函数传值action中定义变量public class TestAction extends ActionSupport implements ServletRequestAware { private String state = "test";} ...
分类:
Web程序 时间:
2016-03-31 16:53:15
阅读次数:
148
一 、 线性查找(顺序查找) public class LSearch { public static int[] Data = { 12, 76, 29, 22, 15, 62, 29, 58, 35, 67, 58, 33, 28, 89, 90, 28, 64, 48, 20, 77 }; / ...
分类:
编程语言 时间:
2016-03-31 16:51:26
阅读次数:
215
RedirectResult:运行重新导向到其他网址,在RedirectResult的内部,基本上还是以Response.Redirect方法响应HTTP 302暂时导向。 eg: public ActionResult Redirect() { return Redirect("/Home/New ...
分类:
Web程序 时间:
2016-03-31 16:50:39
阅读次数:
206
inspector中实现列表框: public override void OnInspectorGUI(){ bool isDoubleClick=false; Event e = Event.current; if (e.type == EventType.mouseDown && Event. ...
分类:
编程语言 时间:
2016-03-31 16:46:42
阅读次数:
146
最近发现一些网站的验证码全部换成了“极验”和“点触”的,发现QQ的注册也是与“点触”的相似。就想尝试实现一个。 先上效果图: 下面贴上主要思路及代码: 第一步:得到常用汉字列表 public static List<string> GetChineseWordList() { string cach ...
分类:
其他好文 时间:
2016-03-31 16:30:18
阅读次数:
222
当要创建一个链表的时候,首先要创建一个节点类,在Java里面叫条目(entry表示),这个类是一个嵌套类,里面包含三个要素,element, next, previous。 public class Link<E> { private static class Entry<E> { private ...
分类:
其他好文 时间:
2016-03-31 16:24:27
阅读次数:
126
#include<iostream>#include<cstdlib>
usingnamespacestd;
template<classT,intssize=100>
classMyList
{Tdata[ssize];
intlength;
public:
MyList(){length=0;}
voidpush_back(constT&i)
{
if(length>=ssize-1)exit(1);
data[length++]=i;
}
bo..
分类:
其他好文 时间:
2016-03-31 15:10:06
阅读次数:
250
//class.h头文件
#include<string>
#include<iostream>
#include<iomanip>//实现setw()宽字节输出
usingnamespacestd;
classstuDate
{
public:
structstudent
{
stringname; //姓名
stringsex; //性别
intid;
floateng,math,chinese,c..
分类:
编程语言 时间:
2016-03-31 15:08:26
阅读次数:
310
c++引入模板是为了更好的代码复用,模板这边分为两个大块.1.模板函数2.模板类我们今天来介绍模板类的应用—顺序表和链表(单链表为例)//模板的顺序表
template<classT>
classSeqList
{
public:
SeqList()
:_array(NULL)
,_size(0)
,_capacity(0)
{}
~SeqList..
分类:
其他好文 时间:
2016-03-31 15:03:29
阅读次数:
185
=====RDBMS安装=====#cd/etc/yum.repos.d/#wgethttp://public-yum.oracle.com/public-yum-ol6.repo//上传"RPM-GPG-KEY-oracle"to"/etc/pki/rpm-gpg/"//上传pdksh-5.2.14-37.el5.x86_64.rpm#yuminstalloracle-rdbms-server-11gR2-preinstall//以上文件可从相应的网址获取到,其..
分类:
数据库 时间:
2016-03-31 15:02:08
阅读次数:
287