自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(44)
  • 资源 (5)
  • 收藏
  • 关注

原创 hdoj 2212

#include#includeusing namespace std;int value[10];int get(int p){ if(p==0) return 1; int i=1;int result=1; for(i=1;i<=p;i++) { result*=i; } return result;}void init(){ int i=0;

2012-03-30 12:42:38 324

原创 hdoj 2352

#include#includeusing namespace std;#define MAX 1010//#define MAX 10char str[MAX];int intstr[MAX];int sign[MAX];int getvalue(char ch){ /* I = 1 V = 5 X = 10 L = 50 C = 100 D =

2012-03-29 21:11:37 297

原创 hdoj 2317

#include#includeusing namespace std;int r,e,c;int n;int main(){ //freopen("in.txt","r",stdin); scanf("%d",&n); while(n--) { scanf("%d%d%d",&r,&e,&c); if(r==e-c) { cout<<"does not ma

2012-03-29 18:36:50 254

原创 hdoj 2309

#include#includeusing namespace std;#define MAX 120int j[MAX]; int main(){ //freopen("in.txt","r",stdin); int n; while(scanf("%d",&n)) { if(n==0) return 0; int i=0;int max=-100000;in

2012-03-29 18:29:01 254

原创 hdoj 2304

#include#includeusing namespace std;int main(){ //freopen("in.txt","r",stdin); int casen; scanf("%d",&casen); while(casen--) { int k; scanf("%d",&k); int temp;int i;int sum=0; for(i=0

2012-03-29 18:16:06 338

原创 (精)hdoj 2149(只能每一次相加为n+1)(我真的想多啦,哈哈)

#include#includeusing namespace std;int main(){ //freopen("in.txt","r",stdin); int m,n; while(scanf("%d %d",&m,&n)!=EOF) { int yu=m%(n+1); if(yu==0) { cout<<"none"<<endl; } else i

2012-03-27 22:13:24 651

原创 (精)hdoj 2188 (博弈论)

#include#includeusing namespace std;#define MAX 12000char map[MAX];int main(){ //freopen("in.txt","r",stdin); int c;scanf("%d",&c); while(c--) { int n;int m; scanf("%d%d",&n,&m); int

2012-03-25 17:47:13 480

原创 hdoj2186

#include#includeusing namespace std;int main(){ //freopen("in.txt","r",stdin); int n;scanf("%d",&n); while(n--) { int sum=0; scanf("%d",&sum); int qiangxian;int yiliao; qiangxian=(int)

2012-03-25 16:37:59 281

原创 拦截器

struts.xml<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> 简单拦截器

2012-03-25 11:14:21 272

原创 拦截器

<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> 方法拦截器 /user.js

2012-03-25 11:09:58 250

原创 (精)hdoj2108(计算几何)(判断凸多边形)

1.向量的叉积的模表示这两个向量围成的平行四边形的面积。 设矢量P = ( x1, y1 ),Q = ( x2, y2 ),则矢量叉积定义为由(0,0)、p1、p2和p1+p2所组成的平行四边形的带符号的面积,即:P×Q = x1*y2 – x2*y1,其结果是一个伪矢量。 显然有性质 P × Q = – ( Q × P ) 和 P × ( – Q ) = – ( P × Q )。2.叉积的

2012-03-25 11:04:08 894

原创 (精)hdoj 2109(注意整数的排序函数)

日志 (精)hdoj 2109(注意整数的排序函数) 2012-3-22 21:25阅读(0) 下一篇:(精)hdoj2108(计... |返回日志列表#include#include#include#include#include//#define MAX 15#define MAX 150using namespace std;int comp(cons

2012-03-25 11:02:59 459

原创 (表达式求值)

#include#include#include#include#include#define MAX 350using namespace std;int max(int a,int b){ if(a>b) { return a; } return b;}int min(int a,int b){ if(a<b) { return a; } re

2012-03-25 11:01:27 250

原创 (精)hdoj(双重排序)

#include#include#include#include#includeusing namespace std;class Person{public: char name[100]; char time[100]; int rank;};int comp(const void *a,const void *b){ Person *person1,*pers

2012-03-25 11:00:06 396

原创 hdoj 1984

#include#include#includeusing namespace std;int main(){ //freopen("in.txt","r",stdin); int n;scanf("%d",&n);int count=1; while(n--) { char word[100]; int m; scanf("%d %s",&m,word); c

2012-03-25 10:53:01 258

原创 hdoj 1976

#include#includeusing namespace std;class Version{public: int zhu; int ci; int xiu;};int main(){ //freopen("in.txt","r",stdin); int n;scanf("%d",&n); Version version[2]; while(n--) {

2012-03-25 10:50:19 271

原创 直接获得jsp中user类的属性

web.xml<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://ja

2012-03-15 17:18:52 1084

原创 拦截器栈(修改属性)

<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> 拦截器一

2012-03-15 16:43:07 340

原创 拦截器(自定义)

struts.xml<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> 登

2012-03-14 22:16:25 270

原创 (精)拦截器(intercept函数)

public String intercept(ActionInvocation invocation) throws Exception { // TODO Auto-generated method stub //因为拦截器不能直接获得jsp文件的输入内容。所以只能实例化一个request。 //让后实例一个action,因为在action当中设置了变量。所以来设置用户的账号

2012-03-14 22:11:16 956

原创 拦截器

web.xml<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://ja

2012-03-14 21:16:47 218

原创 注册异常

/register.jsp /register.jsp /register.jsp

2012-03-13 21:24:57 343

原创 ognl

1 ognl包含java语言的常量类型(int,long,float,double)2 'welcome' 等价于 "welcome" 'H'× "H"√3 23b(BigDecimal常量) 345l(long常量) 345.34(float常量)、4 true false null5 基本对象树的访问 name,department.name,6 容器的访问 #name,

2012-03-13 21:15:13 355

原创 action可以直接获取<s:textfield>的内容

<!-- name: --> 姓名 其他文件与上文相同

2012-03-13 13:44:32 1763

原创 action可以直接获取html的变量内容(不用 request)

web.xml<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://ja

2012-03-13 13:36:47 811

原创 java list 4

import java.util.ArrayList;import java.util.LinkedList;import java.util.Iterator;import java.util.List;public class list { public static void main(String[] args) { String a = "A", b = "B", c

2012-03-12 20:23:14 351

原创 java list 3

import java.util.ArrayList;import java.util.LinkedList;import java.util.Iterator;import java.util.List;public class list { public static void main(String[] args) { String a = "A", b = "B", c

2012-03-12 20:19:42 349

原创 java list

import java.util.ArrayList;import java.util.LinkedList;import java.util.Iterator;import java.util.List;public class list { public static void main(String[] args) { System.out.println("开始:");

2012-03-12 20:15:59 266

原创 java list

import java.util.Iterator;import java.util.LinkedList;import java.util.List;public class list { public static void main(String[] args) { String a = "A", b = "B", c = "C", d = "D", e = "E";

2012-03-12 20:10:37 302

原创 struts数据类型转化(Double.parseDouble())(values[0].split)(string centerValues[])(properties)

(font color="#333333")(s:submit value="submit")web.xml<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoca

2012-03-11 09:56:32 652

原创 struts(/struts-tags)(#books表达式)(有一点地方还有点问题)(properties文件配置)(还有一些东西不明白)

首先配置web.xml <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee ht

2012-03-08 20:27:54 404

原创 struts(当我使用contentPage的时候提示我下载action)(让后我修改成pageEncoding)(可能是因为这一次引入啦新的jar包)

这一次引入了common-logging.jar head.jsp  name:   error.jsp  错误  hello.jsp 输入的内容是

2012-03-07 22:34:23 614

原创 struts (异常处理)(还不是完全熟悉)

login_e.jsp 会员登录 请输入用户名: 请输入密码 忘记密码?  welcome.jsp  已经登录 exception.js

2012-03-07 21:38:36 264

原创 树(不知道叫什么名字,以前也很有用)(增加注释)

#include#includeusing namespace std;#include//这个事最大值const int N=16;//16对应我话的图,所以保存const int INF=100000;struct Node{ int min;//这个地方的最小值(如果这个点没有任何的值,那么为初始值,如果说有值,那么最大值和最小值相同) int max;//这个地方的

2012-03-07 20:45:59 540

原创 struts(动态配置result)(form action="user!add"来调用user类中的add函数)

首先建立4个jsp文件,功能跟他们的名字一样 账号: 密码:   注册失败   注册成功 配置web.xml<web-app version=

2012-03-07 08:49:13 1505

原创 hdoj 1732(推箱子)(利用hash来判断状态,而不是map)

#include #include #include using namespace std;char map[10][10];//地图int n,m,lmin;int x[5] = {1,-1,0,0};//方向int y[5] = {0,0,1,-1};//方向bool hash[8][8][8][8][8][8][8][8];//这个是人的状态class Point

2012-03-06 19:17:14 368

原创 struts命名空间(basePath)(前两行<%%>不要删)(struts.xml修改以后需要重启服务器)

创建一个首页namespace.jsp<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> login.act

2012-03-06 12:38:33 1123

原创 第二个成功的struts(不断的弹出各种错误,于是我卸掉tomcat和eclipse重装,删除以前的软件ok)(中间建立了一个工程还是会弹出错误,让后我就重做工程)(很多知识点需要温习)

首先添加一个login.jsp  让后页面跳转action,当然是通过struts.xml,但是在这个之前要先配置web.xml<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xs

2012-03-05 21:55:10 584

原创 hdoj1730(博弈论)(^)(我利用数量错误)

#include#include#includeusing namespace std;#define MAX 1005//#define MAX 10int Tom[MAX];int Jerry[MAX];int n,m;//m是列号。从1开始int i;int sum=0;int main(){ //freopen("in.txt","r",stdin);

2012-03-04 20:28:40 566 1

原创 hdoj 1728(bfs+hash)(修复原版的bug)(重要)(调试的问题多就重新书写)

#include#include#includeusing namespace std;#define MAX 105const int dir[4][2]={{0,-1},{1,0},{0,1},{-1,0}};class Node{public: int row,col,dir,cost;};int Row,Col;int startrow;int startco

2012-03-04 15:17:56 337

StrutsTutorial

StrutsTutorial文件。很简单的例子

2012-03-01

struts所用的jar文件

用于struts开发的留个jar文件commons-fileupload.jar,commons-logging.jar,freemarker.jar,ognl.jar,struts2-core.jar,xwork-core.jar

2012-02-29

java api中文版

这是用用于java开发,经常用的api文档,而且是中文的啊

2012-02-19

java邮件所需的jar

用于java邮件开发所需的jar,包含smtp.jar,mailapi.jar

2012-02-19

键盘钢琴软件

利用键盘来弹钢琴,副件中有乐谱,满足经济条件一般,但是喜欢钢琴的用户,不妨试一试

2012-01-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除