上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: #include using namespace std; void swap( int k[], int i,int j ) { int temp; temp = k[i]; k[i] = k[j]; k[j] = temp; } void HeapAdjust( int k[], int s,int n ) { int i,temp... 阅读全文
posted @ 2017-06-19 00:09 kent鹏 阅读(206) 评论(0) 推荐(0) 编辑
摘要: //希尔排序 加多一个gap间隔 DEV会崩溃 VC++6.0可以正常运行 #include using namespace std; void InsertSort( int k[], int n ) { int i, j,temp; int gap = n; do { gap = (gap/3) + 1; f... 阅读全文
posted @ 2017-06-19 00:08 kent鹏 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 一、自定义拦截器 1.架构 2.拦截器创建 3.拦截器api 4.拦截器配置 二、struts2标签 1.标签体系 2.struts2标签结构 3.控制标签 准备Action然后再到jsp练习struts2标签 开始练习控制标签: 4.数据标签 5.表单标签 6.非表单标签 在action中添加错误 阅读全文
posted @ 2017-06-18 23:33 kent鹏 阅读(844) 评论(0) 推荐(0) 编辑
摘要: 一、OGNL表达式 1.简介 OGNL:对象视图导航语言. ${user.addr.name} 这种写法就叫对象视图导航。 OGNL不仅仅可以视图导航.支持比EL表达式更加丰富的功能。 2.使用OGNL准备工作 2.1导包 struts2 的包中已经包含了.所以不需要导入额外的jar包 2.2代码准 阅读全文
posted @ 2017-06-15 19:39 kent鹏 阅读(320) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; void InsertSort( int k[], int n ) { int i, j,temp; for( i=1; i temp;j-- ) //找位置并且向后推移 { k[j+1] = k[j]; } ... 阅读全文
posted @ 2017-06-11 23:38 kent鹏 阅读(206) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; void BubbleSort(int k[] , int n)//传入数组和数组的长度 { int i , j ,temp , count1=0,count2=0,flag=1; for( i=0; i i; j-- ) { count1++; ... 阅读全文
posted @ 2017-06-10 17:16 kent鹏 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 问题描述 回文串,是一种特殊的字符串,它从左往右读和从右往左读是一样的。小龙龙认为回文串才是完美的。现在给你一个串,它不一定是回文的,请你计算最少的交换次数使得该串变成一个完美的回文串。 交换的定义是:交换两个相邻的字符 例如mamad 第一次交换 ad : mamda 第二次交换 md : mad 阅读全文
posted @ 2017-06-10 17:13 kent鹏 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 一、结果跳转方式 <action name="Demo1Action" class="cn.itheima.a_result.Demo1Action" method="execute" > <result name="success" type="dispatcher" >/hello.jsp</r 阅读全文
posted @ 2017-06-09 12:35 kent鹏 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 情况:就是项目出现红色感叹号 解决方法: 对准项目右键选择Build Path → configure build path 点击eclipse项目的configure build path后,在弹出来的窗口中,找到Libraries页签,可以看到一些jar包是红色叉号的,这种jar包就是找不到对应 阅读全文
posted @ 2017-06-08 14:20 kent鹏 阅读(11798) 评论(0) 推荐(2) 编辑
摘要: 一、struts2是什么 1.概念 2.struts2使用优势以及历史 二、搭建struts2框架 1.导包 (解压缩)struts2-blank.war就会看到 2.书写Action类 public class HelloAction { public String hello(){ System 阅读全文
posted @ 2017-06-08 13:02 kent鹏 阅读(1509) 评论(6) 推荐(2) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页