mthoutai

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 131 132 133 134 135 136 137 138 139 ··· 181 下一页

2017年5月25日

摘要: 阅读全文
posted @ 2017-05-25 19:57 mthoutai 阅读(255) 评论(0) 推荐(0)

摘要: 要把struts2的action交给spring管理,这样spring才干帮struts2注入须要的的bean(一開始action是由struts初始化,所以想注入spring里面的bean是注入不了的) struts2 的filter生成action的时候由spring管理 struts2向spr 阅读全文
posted @ 2017-05-25 19:54 mthoutai 阅读(113) 评论(0) 推荐(0)

摘要: #include<stdio.h> #include<string.h> #include<iostream> using namespace std; int abs(int a) { return a>0?a:(-a+1); } int main() { int n,i,j,s1,t1,s2,t 阅读全文
posted @ 2017-05-25 18:46 mthoutai 阅读(125) 评论(0) 推荐(0)

摘要: Description Farmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dimensional number 阅读全文
posted @ 2017-05-25 18:14 mthoutai 阅读(219) 评论(0) 推荐(0)

摘要: 上篇文章用的是quicksort方法排序,可是假设用高速排序法对反复率非常高的slice排序的时候,时间复杂度会激增,速度相当慢 所以尝试了一下堆排序,实验结果,感觉挺好的.以下是代码,大家能够參考一下,这个是建立的大顶堆. 二叉树的特性: 最后一个非叶子节点 : root = length/2(当 阅读全文
posted @ 2017-05-25 16:49 mthoutai 阅读(525) 评论(0) 推荐(0)

摘要: 在我们平时开发Android项目的时候比如常常须要使用各种View控件,然后进行声明。findViewById。而且进行强转。每次都要写这种代码就显得很繁琐,而且easy出错哦。那么针对这种情况且不限定于以上的这类情况,Dependency injection 能够大大减少了类之间的依赖性,能够通过 阅读全文
posted @ 2017-05-25 16:47 mthoutai 阅读(215) 评论(0) 推荐(0)

摘要: Description Japan plans to welcome the ACM ICPC World Finals and a lot of roads must be built for the venue. Japan is tall island with N cities on the 阅读全文
posted @ 2017-05-25 16:00 mthoutai 阅读(196) 评论(0) 推荐(0)

摘要: 我们有时候会遇到这么一个情况。就是我在一个ListView里面须要显示的东西事实上是有种类之分的。比方我要分冬天,夏天。秋天。春天,然后在这每一个季节以下再去载入各自的条目数据。还有,比方我们的通讯录。我们须要按A。B,C这种字母顺序分类然后显示。这个怎么实现呢? 以下我们不用ExpandableL 阅读全文
posted @ 2017-05-25 15:17 mthoutai 阅读(357) 评论(0) 推荐(0)

摘要: 就是用来恐吓你的 我能想到的,最短的。且const最多的一个语句是: int const * fun(int const*const a[],const int index)const; 而这个语句还有下面若干等价语句: const int * fun(int const * const a[],c 阅读全文
posted @ 2017-05-25 13:51 mthoutai 阅读(316) 评论(0) 推荐(0)

摘要: 首先RSA是一个非对称的加密算法。所以在使用该算法加密解密之前,必须先行生成密钥对。包含公钥和私钥 JDK中提供了生成密钥对的类KeyPairGenerator,实比例如以下: public static Map<String, Object> genKeyPair() throws Excepti 阅读全文
posted @ 2017-05-25 12:23 mthoutai 阅读(381) 评论(0) 推荐(0)

上一页 1 ··· 131 132 133 134 135 136 137 138 139 ··· 181 下一页