码迷,mamicode.com
首页 > 其他好文
LeetCode: Unique Paths I & II
Title:A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any ...
分类:其他好文   时间:2015-04-30 12:23:37    阅读次数:125
localStorage封装
/*设置与获取Cookie*/ 2 var Cookie ={} 3 Cookie.write = function(key, value, duration){ 4 var d = new Date(); 5 d.setTime(d.getTime()+1000*60*60*24*30); 6 ....
分类:其他好文   时间:2015-04-30 12:22:50    阅读次数:164
作业5.1
1 package case1; 2 import java.io.BufferedReader; 3 import java.io.InputStreamReader; 4 import java.util.Scanner; 5 public class no1 { 6 public s...
分类:其他好文   时间:2015-04-30 12:23:55    阅读次数:97
20150421 作业5 四则运算 测试与封装 5.1
import java.util.ArrayList;import java.util.Random;import java.util.Scanner;public class fengzhuang {// Software Engineering 軟件工程 作業2 static String...
分类:其他好文   时间:2015-04-30 12:22:19    阅读次数:117
inner join
inner join 是内链接inner join 是组合两个表中的记录,只要在公共字段之中有相符的值。他分为:等值连接 ,不等值连接,自然连接left outer join 左连接left outer join 是组合两个表中的记录,但是返回左表所有值,右表的返回公共字段之中相符的值。right ...
分类:其他好文   时间:2015-04-30 12:22:51    阅读次数:151
程序的封装
import java.util.Random;public class FZ { private int a; private int b; int c; public int jia(int a,int b) { System.out.pri...
分类:其他好文   时间:2015-04-30 12:20:08    阅读次数:123
ecshop商品详细描述调用商品相册代码
该修改方法让用户体验更好,特别是ecshop建站的用户产品描叙文字不多的朋友,直接让相册图显示在产品描述里。免去除在后台添加了 修改好后,清除下缓存,看看效果。
分类:其他好文   时间:2015-04-30 12:21:33    阅读次数:105
redis安装
1、下载http://redis.io/2、安装tar -zxvfredis-2.8.19.tar.gzmakemake install3、修改配置redis.confdaemonize yes###后台启动pidfile当Redis在后台运行的时候,Redis默认会把pid文件放在/var/run...
分类:其他好文   时间:2015-04-30 12:21:34    阅读次数:100
struts2 - 异常处理机制
struts2 采用声明式的方法管理异常处理,因此,我们无需在 execute方法中编写 大量的 try...catch语句来捕获异常;只需要在 struts.xml文件中配置异常的映射机制,struts2 便能够处理并转入响应的视图资源.eg:页面输出 异常信息:例如internal_Error....
分类:其他好文   时间:2015-04-30 12:20:40    阅读次数:125
sdutoj 2609 A-Number and B-Number
http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2609A-Number and B-NumberTime Limit: 1000ms Memory limit: 65536K有疑问?点这里^_^题目描述 ...
分类:其他好文   时间:2015-04-30 12:20:44    阅读次数:132
今天学了一下欧拉路
欧拉路径是指能从一个点出发能够“一笔画”完整张图的路径; 在无向图中:如果每个点的度都为偶数 那么这个图是欧拉回路;如果最多有2个奇数点,那么出发点和到达点必定为该2点,那么这个路径就为欧拉路;(前提都是该图连通) 在有向图中:如果每个店的出度和入度都相同,那么为欧拉回路;如果最多只能有2个...
分类:其他好文   时间:2015-04-30 12:21:11    阅读次数:122
cs11_lab6
expressions.hh 1 #ifndef EXPRESSIONS_HH 2 #define EXPRESSIONS_HH 3 4 #include "environment.hh" 5 #include 6 #include 7 #include 8 #include...
分类:其他好文   时间:2015-04-30 12:20:30    阅读次数:109
分隔符
【1】单个符号作为分隔符 String address="上海|上海市|闵行区|吴中路"; String[] splitAddress=address.split("\\|"); //如果以竖线为分隔符,则split的时候需要加上两个斜杠【\\】进行转义 System.out.println(sp....
分类:其他好文   时间:2015-04-30 12:20:23    阅读次数:125
ArcGIS Engine代码共享-工作空间(workspace)对象操作
代码: 1 public class WorkspaceHelper 2 { 3 public static string GISConnectionString; 4 public static IWorkspace GetAccessW...
分类:其他好文   时间:2015-04-30 12:20:09    阅读次数:261
sdutoj 2151 Phone Number
http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2151Phone NumberTime Limit: 1000ms Memory limit: 65536K有疑问?点这里^_^题目描述We know th...
分类:其他好文   时间:2015-04-30 12:19:29    阅读次数:91
Objective-C入门学习(一)
1.BOOL 类型实际上是#define YES 1 #define NO 0 所以实际上是一个整型类型2.实例变量的命名规范是加下划线,比如_name3.在.h文件中声明对象的方法:-(BOOL)方法名1:(NSString *)参数名1 方法名2:(NSInteger)参数名24.#pragma...
分类:其他好文   时间:2015-04-30 12:16:52    阅读次数:96
淡旺季(游程写法)
findrun<-function(x,k){n<-length(x)runs<-NULLfor (i in 1:(n-k+1)){if (all(x[i:(i+k-1)]==1)) runs<-c(runs,i)}return(runs)}
分类:其他好文   时间:2015-04-30 12:18:37    阅读次数:123
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!