上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 一、spring整合JDBC 1.spring提供了很多模板整合Dao技术 2.spring中提供了一个可以操作数据库的对象.对象封装了jdbc技术. JDBCTemplate => JDBC模板对象 与DBUtils中的QueryRunner非常相似. 3.整合步骤 3.1 导包 4+2:4代表: 阅读全文
posted @ 2017-06-30 21:02 kent鹏 阅读(1152) 评论(0) 推荐(2) 编辑
摘要: 一、使用注解配置spring 1.步骤 1.1 导包4+2+spring-aop 4代表: 2代表: 日志包:com.springsource.org.apache.commons.logging-1.1.1.jar 可选:com.springsource.org.apache.log4j-1.2. 阅读全文
posted @ 2017-06-29 15:39 kent鹏 阅读(1235) 评论(0) 推荐(2) 编辑
摘要: 题目描述: 黄金分割数0.61823... 是个无理数,这个常数十分重要,在许多工程问题中会出现。有时需要把这个数字求得很精确。 对于某些精密工程,这些的常数的精度很重要。也许你听说过哈勃太空望远镜,它首次升空后就发现了一处人工加工错误,对那样一个庞然大物,其实只是镜面磨制时有比头发丝还细许多倍的一 阅读全文
posted @ 2017-06-29 10:40 kent鹏 阅读(4785) 评论(0) 推荐(0) 编辑
摘要: 从数塔顶层出发,每个结点可以选择向左走或向右走,要求一直走到塔底,使得走过的路径上的数值和最大。 #include <iostream> #include <cstdio> using namespace std; const int N = 100; // 下面这个函数实现的是更新最大值,o赋值为 阅读全文
posted @ 2017-06-21 23:58 kent鹏 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 一、spring介绍 1.三层架构中spring位置 2.spring一站式框架 正是因为spring框架性质是属于容器性质的. 容器中装什么对象就有什么功能.所以可以一站式. 不仅不排斥其他框架,还能帮其他框架管理对象. aop支持、ioc思想、spring jdbc、aop 事务、junit 测 阅读全文
posted @ 2017-06-20 20:28 kent鹏 阅读(2225) 评论(0) 推荐(1) 编辑
摘要: 题目描述 题目标题: 第39级台阶 小明刚刚看完电影《第39级台阶》,离开电影院的时候,他数了数礼堂前的台阶数,恰好是39级!站在台阶前,他突然又想着一个问题: 如果我每一步只能迈上1个或2个台阶。先迈左脚,然后左右交替,最后一步是迈右脚,也就是说一共要走偶数步。那么,上完39级台阶,有多少种不同的 阅读全文
posted @ 2017-06-19 15:13 kent鹏 阅读(523) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; #define MAX_LENGTH_INSERT_SORT 7 #define MAXSIZE 10 void ISort( int k[], int n ) { int i, j,temp; for( i=1; i temp;j-- ) //找位置并且向后推移 ... 阅读全文
posted @ 2017-06-19 12:33 kent鹏 阅读(2121) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; #define MAX_LENGTH_INSERT_SORT 7 #define MAXSIZE 10 void ISort( int k[], int n ) { int i, j,temp; for( i=1; i temp;j-- ) //找位置并且向后推移 ... 阅读全文
posted @ 2017-06-19 10:59 kent鹏 阅读(553) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; #define MAXSIZE 10 void swap(int k[], int low,int high) { int temp; temp = k[low]; k[low] = k[high]; k[high] = temp; } int Partition(i... 阅读全文
posted @ 2017-06-19 10:01 kent鹏 阅读(2341) 评论(0) 推荐(0) 编辑
摘要: 递归实现 //归并排序 递归实现 #include <iostream> using namespace std; #define MAXSIZE 10 // 实现归并,并把最后的结果存放到 list1里 void merging(int *list1, int list1_size , int * 阅读全文
posted @ 2017-06-19 00:10 kent鹏 阅读(2899) 评论(3) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页