首页 > 其他
@Repository @Service 和@Autowired 的使用
解释: @Controller 声明Action组件 @Service   声明Service组件    @Service("myMovieLister")  @Repository 声明Dao组件  @Autowired 用于注入 配置方位: @Repository ->(XXDaoImpl) , @Service("UserService")->(...
分类:其他   时间:2015-08-20 13:03:35    收藏:0  评论:0  赞:0  阅读:370
poj 1191 棋盘分割 (压缩dp+记忆化搜索)
一,题意: 中文题 二,分析: 主要利用压缩dp与记忆化搜索思想 三,代码: #include #include #include #include #include using namespace std; const int Big=20000000; int Mat[10][10]; int N; int sum[10][10]; int dp[20][10][10][1...
分类:其他   时间:2015-08-20 13:03:25    收藏:0  评论:0  赞:0  阅读:242
find the safest road HDU杭电1596【Dijkstra || SPFA】
http://acm.hdu.edu.cn/showproblem.php?pid=1596 Problem Description XX星球有很多城市,每个城市之间有一条或多条飞行通道,但是并不是所有的路都是很安全的,每一条路有一个安全系数s,s是在 0 和 1 间的实数(包括0,1),一条从u 到 v 的通道P 的安全度为Safe(P) = s(e1)*s(e2)…*s...
分类:其他   时间:2015-08-20 13:03:15    收藏:0  评论:0  赞:0  阅读:306
51NOD 1384 全排列
dfs 即可,要求字典序而且不重复。 开始的时候用map判重。结果有几个样例TLE了。 然后我就直接全部搜出来,然后排序去重。过了。 #include #include #include #include #include #include #include #include //#include //#include //#include #include //#include #...
分类:其他   时间:2015-08-20 13:03:06    收藏:0  评论:0  赞:0  阅读:144
组件的使用(三)AutoCompleteTextView的使用
AutoCompleteTextView常用的属性: android:completionHint 下拉列表下面的说明性文字 android:completionThreshold 弹出下来列表的最小字符个数 android:dropDownAnchor 下拉列表的锚点或挂载点 android:dropDownHeig...
分类:其他   时间:2015-08-20 13:02:56    收藏:0  评论:0  赞:0  阅读:255
csv读入数据,用julia/matplotlib/pyplot 画矢量图导入word中
这是是用julia来实现绘图,julia有三个绘图库:Winston、Gadfly、PyPlot 这里用的是pyplot,其实他是基于matplotlib的 1、首先在juno里安装两个库 juno是julia的集成开放环境(IDE) 没有安装juno的请看这里: Pkg.add("DataFrames")#表格库,这个好像装juno的时候就装好了 Pkg.add("PyPlot")#绘...
分类:其他   时间:2015-08-20 13:02:37    收藏:0  评论:0  赞:0  阅读:737
租房子分组交集查询
Html界面 区域:全选 1" name="CkArea" type="checkbox" value="" /> ...
分类:其他   时间:2015-08-20 13:01:25    收藏:0  评论:0  赞:0  阅读:202
xcode ___gxx_personality_v0" 编译错误
xcode ___gxx_personality_v0" 编译错误Undefined symbols for architecture i386:"___gxx_personality_v0", referenced from:...在XCODE工程 添加 libstdc++.dylib 即可
分类:其他   时间:2015-08-20 13:00:25    收藏:0  评论:0  赞:0  阅读:347
HDU 1058 Humble Numbers
Humble NumbersProblem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 1...
分类:其他   时间:2015-08-20 13:00:16    收藏:0  评论:0  赞:0  阅读:220
C-1 方法重载,比较大小
1 /* 2 方法重载 3 比较两个数据是否相等,参数类型分别为 4 两个byte、两个short、两个int、两个long 5 */ 6 7 class FunctionTest{ 8 public static void main(String[] args){ 9 10 ...
分类:其他   时间:2015-08-20 12:59:45    收藏:0  评论:0  赞:0  阅读:235
Neutron Metering as a Service
1, /etc/neutron/neutron.conf service_plugins = router,metering notification_driver=neutron.openstack.common.notifier.rpc_notifier2, /etc/neutron/mete....
分类:其他   时间:2015-08-20 12:58:27    收藏:0  评论:0  赞:0  阅读:184
Qt入门之常用qt控件认知之QLabel
QLabel是Qt最为基本和常用的一个控件。其定义包含在中。 1、整体简介(QLabel功能):QLabel的功能就是显示文字或者图片,没有用户交互功能,这也就是经常不位QLabel控件设置焦点的原因,QLabel外观可以通过不同的方式进行设置,同时有一个非常重要的功能,其可以作为另外一个控件的焦点...
分类:其他   时间:2015-08-20 12:57:35    收藏:0  评论:0  赞:0  阅读:220
开发中常见问题集锦
本文目录1.重复调用2次loadView和viewDidLoad2.按钮无法点击3.@2x和-568h@2x4.启动app时全屏显示Default.png这篇文章是专门用来记录开发中一些常见的BUG以及常用的零碎知识点,我会隔一段时间更新内容回到顶部1.重复调用2次loadView和viewDidL...
分类:其他   时间:2015-08-20 12:57:25    收藏:0  评论:0  赞:0  阅读:248
HDU 1421 搬寝室
搬寝室Problem Description搬寝室是很累的,xhd深有体会.时间追述2006年7月9号,那天xhd迫于无奈要从27号楼搬到3号楼,因为10号要封楼了.看着寝室里的n件物品,xhd开始发呆,因为n是一个小于2000的整数,实在是太多了,于是xhd决定随便搬2*k件过去就行了.但还是会很...
分类:其他   时间:2015-08-20 12:56:55    收藏:0  评论:0  赞:0  阅读:199
【转】Wireshark过滤规则筛选数据包
http://blog.sina.com.cn/s/blog_60a65db5010135ib.html一、IP过滤:包括来源IP或者目标IP等于某个IP比如:ip.src addr==192.168.0.208 or ip.src addr eq 192.168.0.208 显示来源IPip.ds...
分类:其他   时间:2015-08-20 12:56:45    收藏:0  评论:0  赞:0  阅读:326
[LeetCode] Majority Element II
Given an integer array of sizen, find all elements that appear more than? n/3 ?times. The algorithm should run in linear time and in O(1) space. 这道题就....
分类:其他   时间:2015-08-20 12:55:45    收藏:0  评论:0  赞:0  阅读:297
LC.exe exited with code -1
昨天从win8.1升级到win10之后, 一切还算顺利, 就是升级时间比较长. 但是快下班的时候 遇到一个问题, 是之前在win8.1上没遇到的, 首先代码win8.1 vs2013 上跑的时候一切正常, 但是在win10 vs2013上就出现问题了, 就是标题上的这个问题 "LC.exe exit...
分类:其他   时间:2015-08-20 12:54:15    收藏:0  评论:0  赞:0  阅读:218
BZOJ 1071 [SCOI2007]组队
1071: [SCOI2007]组队Time Limit:1 SecMemory Limit:162 MBSubmit:1330Solved:417[Submit][Status][Discuss]DescriptionNBA每年都有球员选秀环节。通常用速度和身高两项数据来衡量一个篮球运动员的基本素...
分类:其他   时间:2015-08-20 12:53:45    收藏:0  评论:0  赞:0  阅读:206
topic4:Qt入门之常用qt控件认知之Button系列
按钮,常常被理解为触发一种动作请求或者命令,是与用户进行指令交互的操作。Qt中Button系列根据用途被划分为不同的定义,其实现框架为QAbstractButton提供按钮的通用性功能,此为抽象基类,所以无法进行实例化。用户需要继承定义此类,实现paintEvent,实现具体的展示。常见的Butto...
分类:其他   时间:2015-08-20 12:53:05    收藏:0  评论:0  赞:0  阅读:100
【LeetCode】217. Contains Duplicate
题目:Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the ...
分类:其他   时间:2015-08-20 12:52:25    收藏:0  评论:0  赞:0  阅读:269
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!