码迷,mamicode.com
首页 > 其他好文
XAML UI 的3D 透视效果
Type Something Below
分类:其他好文   时间:2015-01-25 12:25:41    阅读次数:183
CentOS添加本地源
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
struts2 学习笔记(简单的登陆功能实现)
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学习 6:平滑滤波器 cvSmooth()——2
原创文章,欢迎转载,转载请注明出处前面进行了彩色的模糊处理,我们对黑白图片进行同样的平滑处理,看看效果。首先是需要创建黑白图片,我对opencv的各种函数还不是很熟悉,我们可以先用熟悉的创建单通道的图片。1 IplImage* img = cvCreateImage(cvSize(300, 300)...
分类:其他好文   时间:2015-01-25 12:27:23    阅读次数:246
UISearchController 基础使用
在最近的学习中,需要用到搜索框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
【PAT_Basic日记】1002. 写出这个数
#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
hdu 1501 Zipper(DP)
题意:给三个字符串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
leetcode------Intersection of Two Linked Lists
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
【DP】最大连续子序列-hdu 1231
题目来源: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
POJ 3468 A Simple Problem with Integers(线段树区间更新区间求和)
A Simple Problem with IntegersTime Limit: 5000MSMemory Limit: 131072KTotal Submissions: 67511Accepted: 20818Case Time Limit: 2000MSDescriptionYou have...
分类:其他好文   时间:2015-01-25 12:23:44    阅读次数:157
hdu 1074 Doing Homework(状压DP)
题意:有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-Optional可空类型
接上篇Guava之Joiner和Splitter,本篇将介绍Guava的另外一个有用的对象Optional,这在Java中Google Guava首先给我们提出可空对象模型的。在其他语言如c#这是已经存在很久的模式,并包含在.net类库中Nullable(Int?也是一个可空类 型)。Null su...
分类:其他好文   时间:2015-01-25 12:23:08    阅读次数:132
CALayer
CALayer一,简介:1,CALayer 一般作为UIView的容器而实用2,CALayer时一个管理着图片载体(image-based content)的层结构3,直接修改单独创建出的CALayer 的属性可以触发隐式动画4,UIView中的CALayer动画必须显示触发才能生效。二,进度条1,...
分类:其他好文   时间:2015-01-25 12:21:19    阅读次数:202
【BZOJ】【1086】 【SCOI2005】王室联邦
树分块 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
【PAT_Basic日记】1004 成绩排名
至今仍然存在问题,第一个测试点不过#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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!