码迷,mamicode.com
首页 >  
搜索关键字:try catch    ( 15901个结果
图片轮播
js(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.sr...
分类:其他好文   时间:2014-08-15 17:25:49    阅读次数:369
HDU4939:Stupid Tower Defense(DP)
Problem Description FSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by building traps to slow them down and towers whic...
分类:其他好文   时间:2014-08-15 14:42:48    阅读次数:188
poj 3278 Catch That Cow 【BFS】
题意:从一个点n到达另外一个点m, 移动的方式有三种,*2,+1, -1。求最少到达的步数。 策略:如题。 wa了好几次。。。 只输入一组数据,用队列的时候最好吧队列声明放在函数外面否则用g++递交有可能wa(亲身体验)。但是用c++可以过的。 代码1(队列声明放在函数的外面,用c++和g++都可以a): #include #include #include using namespac...
分类:其他好文   时间:2014-08-15 12:57:38    阅读次数:242
sharepoint给文档授权
//在列表根目录下创建文件夹 public static string CreatFolderToSPDocLib(string strFolderName, string strDocLibName) { string FolderPath = string.Empty; try { using ...
分类:其他好文   时间:2014-08-15 12:11:08    阅读次数:159
yii和wp做博客
第一步,安装yii和wp:第二步,创建protected/components/ExceptionHandler.php文件statusCode == 404) { try { Yii::app()->runCo...
分类:其他好文   时间:2014-08-15 08:16:37    阅读次数:239
baksmali和smali源码分析(四)
baksmali首先执行的第一个main函数publicstaticvoidmain(String[]args)throwsIOException{ Localelocale=newLocale("en","US"); Locale.setDefault(locale); CommandLineParserparser=newPosixParser(); CommandLinecommandLine; try{ commandLine=parser.parse(options,args..
分类:其他好文   时间:2014-08-15 02:53:47    阅读次数:261
bouncycastle创建csr
public static void main(String[] args) { String subjectDN = "CN=duwenlei"; String algorithm = ""; try { KeyPairGenerat...
分类:其他好文   时间:2014-08-14 20:12:39    阅读次数:175
用递归求分数的和
import java.io.IOException;import java.util.Scanner;public class Sum { public static void main(String[] args) throws IOException { try { ...
分类:其他好文   时间:2014-08-14 20:11:09    阅读次数:206
poi导出excel
/** * * 方法名称: exportUtil|描述: 导出指定格式的数据* @param projPlanList* @return */public String exportUtil(List projPlanList){try{HSSFWorkbook workbook = new HSS...
分类:其他好文   时间:2014-08-14 19:27:59    阅读次数:310
生成文件信息
import java.io.File;import java.io.FileOutputStream;public class Creat { public static void main(String[] args){ try { File f = n...
分类:其他好文   时间:2014-08-14 15:59:18    阅读次数:165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!