Type Something Below
分类:
其他好文 时间:
2015-01-25 12:25:41
阅读次数:
183
1、将CentOS的Everything镜像文件复制到 /usr/local/src目录下2、添加 /etc/yum.repos.d/localSource.repo ,文件内容如下:[localSource]name=localSource baseurl=file:///mnt/localSou...
分类:
其他好文 时间:
2015-01-25 12:25:27
阅读次数:
346
1.简单的jsp页面代码。登陆界面1 2 3 用户名4 密码5 6 7 登陆成功界面 几个字,登陆成功登陆失败界面 几个字,登录失败2.xml配置文件。建立在src目录下。 1 2 5 6 7 8 9 1...
分类:
其他好文 时间:
2015-01-25 12:27:45
阅读次数:
174
原创文章,欢迎转载,转载请注明出处前面进行了彩色的模糊处理,我们对黑白图片进行同样的平滑处理,看看效果。首先是需要创建黑白图片,我对opencv的各种函数还不是很熟悉,我们可以先用熟悉的创建单通道的图片。1 IplImage* img = cvCreateImage(cvSize(300, 300)...
分类:
其他好文 时间:
2015-01-25 12:27:23
阅读次数:
246
在最近的学习中,需要用到搜索框UISearchController,但是在网上或者教材上没有看到相关资料,只有UISearchDisplayController这个被弃用的控件,于是自己琢磨了下弄出来了。我想实现的功能是这样的,在主视图中有一个UISearchBar,当这个UISearchBar获得...
分类:
其他好文 时间:
2015-01-25 12:25:34
阅读次数:
728
对于动态语言与静态语言的区分,套用一句流行的话就是:Static typing when possible, dynamic typing when needed。“动”或“静”,强调的是实施类型的时间,编译里就要确定类型的是静态类型,比如C/C++/JAVA/C#,运行时才实施类型的则是动态类型,...
分类:
其他好文 时间:
2015-01-25 12:24:40
阅读次数:
183
import java.io.IOException;import java.io.InputStream;import java.util.Properties;/*** 读取配置文件* @author zhangrujing**/public enum Config { INSTANCE; p....
分类:
其他好文 时间:
2015-01-25 12:24:13
阅读次数:
195
#include #include #include int main(){ void print(int i); char a[1000]; int i,len; int sum=0; scanf("%s",a); len=strlen(a); if(le...
分类:
其他好文 时间:
2015-01-25 12:25:09
阅读次数:
240
题意:给三个字符串str1、str2、str3问str1和str2能否拼接成str3。(拼接的意思可以互相穿插)能输出YES否则输出NO。思路:如果str3是由str1和str2拼接而成,str1的前i个字符和str2的前j个字符一定构成str3的前i+j个字符。(因为拼接必须保证字符的顺序不变)所...
分类:
其他好文 时间:
2015-01-25 12:24:48
阅读次数:
140
Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a...
分类:
其他好文 时间:
2015-01-25 12:23:15
阅读次数:
158
题目来源:http://acm.hdu.edu.cn/showproblem.php?pid=1231算法参考:http://blog.163.com/wuguojin03@126/blog/static/17154113120109510946717/状态:dp[i]:以i为结尾最长连续序列初始状...
分类:
其他好文 时间:
2015-01-25 12:23:54
阅读次数:
157
A Simple Problem with IntegersTime Limit: 5000MSMemory Limit: 131072KTotal Submissions: 67511Accepted: 20818Case Time Limit: 2000MSDescriptionYou have...
分类:
其他好文 时间:
2015-01-25 12:23:44
阅读次数:
157
题意:有N(N>T; while(T--){ scanf("%d",&n); rep(i,1,n){ scanf("%s%d%d",work[i].name,&work[i].deadline,&work[i].days); } ...
分类:
其他好文 时间:
2015-01-25 12:23:01
阅读次数:
155
接上篇Guava之Joiner和Splitter,本篇将介绍Guava的另外一个有用的对象Optional,这在Java中Google Guava首先给我们提出可空对象模型的。在其他语言如c#这是已经存在很久的模式,并包含在.net类库中Nullable(Int?也是一个可空类 型)。Null su...
分类:
其他好文 时间:
2015-01-25 12:23:08
阅读次数:
132
CALayer一,简介:1,CALayer 一般作为UIView的容器而实用2,CALayer时一个管理着图片载体(image-based content)的层结构3,直接修改单独创建出的CALayer 的属性可以触发隐式动画4,UIView中的CALayer动画必须显示触发才能生效。二,进度条1,...
分类:
其他好文 时间:
2015-01-25 12:21:19
阅读次数:
202
树分块 orz vfk && PoPoQQQ http://vfleaking.blog.163.com/blog/static/174807634201231684436977/ http://blog.csdn.net/popoqqq/article/details/42772237 这...
分类:
其他好文 时间:
2015-01-25 12:21:25
阅读次数:
282
至今仍然存在问题,第一个测试点不过#include #include #include typedef struct student{ char name[10]; char num[10]; int grade;}student;int main(){ student te...
分类:
其他好文 时间:
2015-01-25 12:21:58
阅读次数:
351